Re: two ?s: '' vs ""; function to post form data
| From: | Philip Olson | Date: | Wed, 18 Oct 2000 03:28:19 +0000 |
| Subject: | Re: two ?s: '' vs ""; function to post form data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20776@lists.php.net to get a copy of this message | ||
A great tutorial on strings is :
http://www.zend.com/zend/tut/using-strings.php
Philip
--
without php my name would be ili !
On Tue, 17 Oct 2000, Matt McClanahan wrote:
> On Tue, 17 Oct 2000, Daniel Convissor wrote:
>
> > Hey Alan:
> >
> > > 1. I've been reading a few php articles today, and so far I've not come
> > > across a clear distinction between variables defined using '' and those
> > > using "". I've read those are both strings, but what is the
> > > difference?
> >
> > "It's partly style, but" single quotes don't need escaping
> > 'It\'s partly style, but' single quotes in text need escaping
>
> Another important distinction is that strings in single quotes won't be
> parsed, so 'Hello, $name' will be read literally as 'Hello, $name' as
> opposed to 'Hello, John'.
>
> Matt
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>