Re: Substr
| From: | raditha dissanayake | Date: | Mon, 25 Oct 2004 13:14:32 +0000 |
| Subject: | Re: Substr | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200240@lists.php.net to get a copy of this message | ||
Shaun wrote:
However, to get the Project ID I need to extract everything after 'pid_' and everything before 'date_'. Can someone help me with this please as PHP doesn't seem to provide a function for extracting information from a string that occurs before the 'needle'? yes it doe. look under regular expressions.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.