![]() | |
| |||||||
| Home | Register | Blogs | FAQ | Members List | Calendar | Downloads | Arcade | Mark Forums Read |
| Web Development Java/PHP/Perl/ASP and more |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #2 |
| Moderator Join Date: Mar 2002 Location: Ukraine
Posts: 123
Rep Power: 7 Reputation:
10 | В PHP различие такое: Variable parsing When a string is specified in double quotes or with heredoc, variables are parsed within it. There are two types of syntax, a simple one and a complex one. The simple syntax is the most common and convenient, it provides a way to parse a variable, an array value, or an object property. The complex syntax was introduced in PHP 4, and can be recognised by the curly braces surrounding the expression. На деле это выглядит так: $test = 'test'; $s1 = 'this is the $test'; // this is the $test $s2 = "this is the $test"; // this is the test Использование " или ' сказывается на скорости. По поводу этого можно почитать статью "Оптимизация программ на PHP".
__________________ Життя - це не тільки будні © Nemiroff |
| | |
| | #5 | |
| В бой аргхххххххх! | Quote:
Baci dranic ' jamanak escaping chi arvum aisinqn PHP Code: es gnaci tun\nmarshrutkov isk PHP Code: es gnaci tun marshrutkov | |
| | |