PHP 4 adds a new mechanism to variable substitution in
strings. You can now finally access object member variables and
elements from multidimensional arrays within strings.
To do so you have to enclose your variables with curly braces with
the dollar sign immediately following the opening brace:
{$...}
To embed the value of an object member variable into a string you
simply write "text {$obj->member} text" while
in PHP 3 you had to use something like "text
".$obj->member." text".
This should lead to more readable code, while it may break
existing scripts written for PHP 3. But you can easily check for
this kind of problem by checking for the character combination
{$ in your code and by replacing it with
\{$ with your favorite search-and-replace
tool.
Php migration4.strings Function syntax tag
migration4.strings php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php migration4.strings syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.