You are here: How do you interpret single quote embedded in double quote embedded in single quote? « PHP Programming Language « IT news, forums, messages
How do you interpret single quote embedded in double quote embedded in single quote?

Posted by Reporter on 07/28/07 15:33

I got the following example from http://www.evolt.org/article/User_Friendly_Forms_in_PHP/20/60144/index.html
:

echo '<tr><td>First name:</td><td><input type="text" name="first_name"
value="'.htmlspecialchars($_POST['first_name']).'"></td></tr>';

What purpose do the single quotes serve in
value="'.htmlspecialchars($_POST['first_name']).'"

I don't mean the single quotes around first_name. I mean the single
quotes before and after the periods.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация