[PHP-DOC] Re: cvs: phpdoc /en/reference/strings/functions trim.xml
Mehdi Achour wrote: didou Tue Apr 27 17:45:48 2004 EDT Modified files: /phpdoc/en/reference/strings/functions trim.xml Log: ordered text (a note about a parameter was on top, before any other text) and redesigned the example [..skip..] @@ -80,19 +74,25 @@ ?php $text = \t\tThese are a few words :) ... ; -$trimmed = trim($text); -// $trimmed = These are a few words :) ... -$trimmed = trim($text, \t.); -// $trimmed = These are a few words :) -$clean = trim($binary, \x00..\x1F); + +echo trim($text); // These are a few words :) ... +echo = trim($text, \t.); // These are a few words :) + // trim the ASCII control characters at the beginning and end of $binary // (from 0 to 31 inclusive) +$clean = trim($binary, \x00..\x1F); ? ]] [..skip..] echo = trim($text, \t.); // These are a few words :) What is it supposed to be ? -- Andrey Demenev aka Blindman [EMAIL PROTECTED]
Re: [PHP-DOC] Re: cvs: phpdoc /en/reference/strings/functions trim.xml
echo = trim($text, \t.); // These are a few words :) What is it supposed to be ? Fixed in CVS. Thanks! Nuno
[PHP-DOC] Re: cvs: phpdoc /en/reference/strings/functions trim.xml
Derick Rethans wrote: derick Mon Feb 16 17:22:30 2004 EDT Modified files: /phpdoc/en/reference/strings/functions trim.xml Log: - This example didn't work, fixing. The rest of the documentation in this file is talking about 0x00 and so on.. should this be fixed ? didou
[PHP-DOC] Re: cvs: phpdoc /en/reference/strings/functions trim.xml
On Tue, 17 Feb 2004, Mehdi Achour wrote: Derick Rethans wrote: derick Mon Feb 16 17:22:30 2004 EDT Modified files: /phpdoc/en/reference/strings/functions trim.xml Log: - This example didn't work, fixing. The rest of the documentation in this file is talking about 0x00 and so on.. should this be fixed ? dunno, test it? :) Derick
[PHP-DOC] Re: cvs: phpdoc /en/reference/strings/functions trim.xml
Derick Rethans wrote: On Tue, 17 Feb 2004, Mehdi Achour wrote: Derick Rethans wrote: derick Mon Feb 16 17:22:30 2004 EDT Modified files: /phpdoc/en/reference/strings/functions trim.xml Log: - This example didn't work, fixing. The rest of the documentation in this file is talking about 0x00 and so on.. should this be fixed ? dunno, test it? :) I'm asking cos I don't know much about the topic ;) Maybe you do ? didou
[PHP-DOC] Re: cvs: phpdoc /en/reference/strings/functions trim.xml
On Tue, 17 Feb 2004, Mehdi Achour wrote: dunno, test it? :) I'm asking cos I don't know much about the topic ;) Maybe you do ? Just test if the exaples do what they describe, the one I did didn't work so I fixed it. I don't have time to go through them all now. Derick
Re: [PHP-DOC] Re: cvs: phpdoc /en/reference/strings/functions trim.xml
On Tue, Feb 17, 2004 at 07:44:11PM +0100, Mehdi Achour wrote: Derick Rethans wrote: On Tue, 17 Feb 2004, Mehdi Achour wrote: Derick Rethans wrote: derick Mon Feb 16 17:22:30 2004 EDT Modified files: /phpdoc/en/reference/strings/functions trim.xml Log: - This example didn't work, fixing. The rest of the documentation in this file is talking about 0x00 and so on.. should this be fixed ? dunno, test it? :) I'm asking cos I don't know much about the topic ;) Maybe you do ? didou No, the rest is correct.(ASCII 32 (0x20)) means that the space character has an ordinal value of 32 (or 0x20 in hex notation). It's just that you specify characters by their ordinal hex with foo\x20bar in strings. Outside strings, you use 0xFF to get the numeric value... -- Regards, Stefan Walk [EMAIL PROTECTED]