note 57446 added to reference.pcre.pattern.syntax
| From: | wazaawazaa600 at msn dot com | Date: | Tue, 04 Oct 2005 16:05:31 +0000 |
| Subject: | note 57446 added to reference.pcre.pattern.syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96367@lists.php.net to get a copy of this message | ||
It is important to know when use the preg, reg or other functions. Because these functions have more
or less "power" and data time process
For example, if you want that a text with spaces generaters an array of words, you have many
options, you can do an explode, and split or an preg_split.
explode is in string functions group.
split is in posix group functions.
preg_split is in PCRE group functions
The first function in this list is the less powerful, but the fastest function, and the last is the
more powerful and slower function, at the same time.
In this case with the 3 functions you can do exactly the same!!! So this will be god to use the
first one...
And you know, a few miliseconds for every time a process runs in the day is a lot of time! ;D
----
Manual Page -- http://www.php.net/manual/en/reference.pcre.pattern.syntax.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57446
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57446&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57446&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57446&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57446&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57446&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57446&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57446&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57446&report=yes
Search -- http://master.php.net/manage/user-notes.php