Re: #48332 [Opn->Bgs]: Why are regular expressions mentioned in the section about double quoted string
| From: | Peter Cowburn | Date: | Tue, 19 May 2009 15:16:17 +0000 |
| Subject: | Re: #48332 [Opn->Bgs]: Why are regular expressions mentioned in the section about double quoted string | ||
| References: | 1 2 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2277@lists.php.net to get a copy of this message | ||
It means, quite simply that one could write the string "Hello" in the
form "\110\145\154\154\157" whereas '\110\145\154\154\157' (note
single quotes) would contain those literal characters. The same goes
for the hexadecimal representation of characters ("H" === "\x48").
2009/5/19 <rquadling@php.net>:
> ID: 48332
> Updated by: rquadling@php.net
> Reported By: jward at crinet dot com
> -Status: Open
> +Status: Bogus
> Bug Type: Documentation problem
> PHP Version: Irrelevant
> New Comment:
>
> The regular expression is describing how to write an octal number.
>
> \0 to \777
>
>
>
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2009-05-19 14:10:28] jward at crinet dot com
>
> Description:
> ------------
> Why are regular expressions mentioned in the section about double
> quoted string?
> On what string do the regex operate on? Where are the results? Where is
> the example?
>
> What could "foo \[0-7]{1,3}" mean? and why would any one write it?
>
> Reproduce code:
> ---------------
> ---
> From manual page: language.types.string
> ---
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> Edit this bug report at
> http://bugs.php.net/?id=48332&edit=1
>
>
> --
> PHP Documentation Bugs Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>