Jump to content

How does this work?


clanstyles

Recommended Posts

what???

 

 

{} if this braces is use within the variable its like your telling PHP that it is variable for some reading ive done it says that it is faster to use that i dont know but thats base on what i read we cant tell because its fast and we cant see the difference

 

 

and if u can echo this

echo TENG; without the"" that means it is define somthing like

define('TENG', 'ASTIG')

 

giving the value of teng as astig

 

hmmm does that make sense?????

Link to comment
https://forums.phpfreaks.com/topic/63973-how-does-this-work/#findComment-318880
Share on other sites

in our html template we do this #{value}# almost the same as what you want in h=this case we are using the http://www.php.net/manual/en/function.ob-start.php

 

but im telling you this is not easy you have to have allot of thing to have this work you have to have a regex and etc.

 

anyway the logic is that the html page will be read by the php and get the value inside the {} then add the variable name like in our case

 

if we define this $var[name]='teng';

 

when the php code read the html it will get the name inside the {} then put the $var[name]

 

it actually the same as echoing in the html like <? echo something?> but for us to have a clean template we do something like this

 

HHHHHHHM does it make sense

Link to comment
https://forums.phpfreaks.com/topic/63973-how-does-this-work/#findComment-318915
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.