Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
AI Chat Bot for Websites
sajith.xp.pk
Updated:
Thursday at 1:17 PM
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Nov 7, 2026
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
●● ELAKIRI WEB DEVELOPERS' CLUB ●●
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="aragon" data-source="post: 7267021" data-attributes="member: 134516"><p style="text-align: center"> <u><strong>XHP makes PHP developers life easy...</strong></u></p> <p style="text-align: center"><u><strong></strong></u></p> <p style="text-align: center"><u><strong></strong></u><p style="text-align: left"></p> <p style="text-align: left"></p> <p style="text-align: left"><span style="color: Red"><strong>I get this from my friend's blog..</strong></span></p> <p style="text-align: left"><span style="color: Red"><strong></strong></span></p> <p style="text-align: left"><span style="color: Red"><strong></strong></span></p> </p><p></p><p></p><p> </p><p> Recently I've been looking for GSoC project to submit a proposal. On the process I went through an interesting project called XHP which is a PHP extension. If you are a PHP programmer and want to spend more time for the logic then XHP answers for that.</p><p></p><p>It simply makes your life is.</p><p>Earlier the code you wrote as:</p><p></p><p>echo "<span style="color: #008B8B"><</span><span style="color: #A52A2A"><strong>ul</strong></span><span style="color: #008B8B">></span>";</p><p>for ($i=0; $i<span style="color: #008B8B"><</span>10<span style="color: #008B8B">;></span></p><p>echo "<span style="color: #008B8B"><</span><span style="color: #A52A2A"><strong>li</strong></span><span style="color: #008B8B">></span>$i<span style="color: #008B8B"></</span><span style="color: #A52A2A"><strong>li</strong></span><span style="color: #008B8B">></span>";</p><p>echo "<span style="color: #008B8B"></</span><span style="color: #A52A2A"><strong>ul</strong></span><span style="color: #008B8B">></span>";</p><p></p><p>Now with XHP:</p><p></p><p></p><p>$elt = <span style="color: #008B8B"><</span><span style="color: #A52A2A"><strong>ul</strong></span><span style="color: #008B8B">></span><span style="color: #008B8B"></</span><span style="color: #A52A2A"><strong>ul</strong></span><span style="color: #008B8B">></span>;</p><p>for ($i=0; $i<span style="color: #008B8B"><</span>10<span style="color: #008B8B">; ++$i)</span></p><p><span style="color: #008B8B"> $elt-></span>appendChild(<span style="color: #008B8B"><</span><span style="color: #A52A2A"><strong>li</strong></span><span style="color: #008B8B">></span>{$i}<span style="color: #008B8B"></</span><span style="color: #A52A2A"><strong>li</strong></span><span style="color: #008B8B">></span>);</p><p>echo $elt;</p><p></p><p></p><p></p><p>Furthermore you can define the content models also, so that you can't write something like:</p><p></p><p>$elm = <span style="color: #008B8B"><</span>inpuy<span style="color: #008B8B">><</span><span style="color: #A52A2A"><strong>a</strong></span><span style="color: #008B8B">></span><span style="color: #008B8B"></</span><span style="color: #A52A2A"><strong>a</strong></span><span style="color: #008B8B">></</span><span style="color: #A52A2A"><strong>input</strong></span><span style="color: #008B8B">></span>;</p><p></p><p>which gives an error which really helpful..</p><p>There are lot about this to know. Checkout fallowing links:</p><p></p><p></p><p><a href="http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.htm" target="_blank">http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.htm</a></p><p><a href="http://www.readwriteweb.com/archives/xhp_more_php_enhancement_from_facebook.php" target="_blank">http://www.readwriteweb.com/archives/xhp_more_php_enhancement_from_facebook.php</a></p><p><a href="http://wiki.github.com/facebook/xhp/" target="_blank">http://wiki.github.com/facebook/xhp/</a></p></blockquote><p></p>
[QUOTE="aragon, post: 7267021, member: 134516"] [CENTER] [U][B]XHP makes PHP developers life easy... [/B][/U][LEFT] [COLOR=Red][B]I get this from my friend's blog.. [/B][/COLOR][/LEFT] [/CENTER] [B] [/B] Recently I've been looking for GSoC project to submit a proposal. On the process I went through an interesting project called XHP which is a PHP extension. If you are a PHP programmer and want to spend more time for the logic then XHP answers for that. It simply makes your life is. Earlier the code you wrote as: echo "[COLOR=#008B8B]<[/COLOR][COLOR=#A52A2A][B]ul[/B][/COLOR][COLOR=#008B8B]>[/COLOR]"; for ($i=0; $i[COLOR=#008B8B]<[/COLOR]10[COLOR=#008B8B];>[/COLOR] echo "[COLOR=#008B8B]<[/COLOR][COLOR=#A52A2A][B]li[/B][/COLOR][COLOR=#008B8B]>[/COLOR]$i[COLOR=#008B8B]</[/COLOR][COLOR=#A52A2A][B]li[/B][/COLOR][COLOR=#008B8B]>[/COLOR]"; echo "[COLOR=#008B8B]</[/COLOR][COLOR=#A52A2A][B]ul[/B][/COLOR][COLOR=#008B8B]>[/COLOR]"; Now with XHP: $elt = [COLOR=#008B8B]<[/COLOR][COLOR=#A52A2A][B]ul[/B][/COLOR][COLOR=#008B8B]>[/COLOR][COLOR=#008B8B]</[/COLOR][COLOR=#A52A2A][B]ul[/B][/COLOR][COLOR=#008B8B]>[/COLOR]; for ($i=0; $i[COLOR=#008B8B]<[/COLOR]10[COLOR=#008B8B]; ++$i)[/COLOR] [COLOR=#008B8B] $elt->[/COLOR]appendChild([COLOR=#008B8B]<[/COLOR][COLOR=#A52A2A][B]li[/B][/COLOR][COLOR=#008B8B]>[/COLOR]{$i}[COLOR=#008B8B]</[/COLOR][COLOR=#A52A2A][B]li[/B][/COLOR][COLOR=#008B8B]>[/COLOR]); echo $elt; Furthermore you can define the content models also, so that you can't write something like: $elm = [COLOR=#008B8B]<[/COLOR]inpuy[COLOR=#008B8B]><[/COLOR][COLOR=#A52A2A][B]a[/B][/COLOR][COLOR=#008B8B]>[/COLOR][COLOR=#008B8B]</[/COLOR][COLOR=#A52A2A][B]a[/B][/COLOR][COLOR=#008B8B]></[/COLOR][COLOR=#A52A2A][B]input[/B][/COLOR][COLOR=#008B8B]>[/COLOR]; which gives an error which really helpful.. There are lot about this to know. Checkout fallowing links: [URL]http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.htm[/URL] [URL]http://www.readwriteweb.com/archives/xhp_more_php_enhancement_from_facebook.php[/URL] [URL]http://wiki.github.com/facebook/xhp/[/URL] [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom