RE: [PHP-WIN] i need help
| From: | Gryffyn, Trevor | Date: | Tue, 18 May 2004 13:26:33 +0000 |
| Subject: | RE: [PHP-WIN] i need help | ||
| Groups: | php.general php.windows | ||
| Request: | Send a blank email to php-general+get-186472@lists.php.net to get a copy of this message | ||
If the format is consistantly the same, try this:
$somedata = "[i:aslkdfj]";
$insidedata = substr($somedata,3,strlen($somedata)-4);
-TG
> -----Original Message-----
> From: Student [mailto:coolstudprit@hotmail.com]
> Sent: Monday, May 17, 2004 11:42 PM
> To: php-general@lists.php.net; php-windows@lists.php.net
> Subject: [PHP-WIN] i need help
>
>
> Hi i was hoping if someone can help;
>
> I want to trim the following text
>
> [i:abcdef]
>
> but the inside text is different at time eg abcdef, bcdefg, etc etc
> how can i trim [i:(some text here)] so that i can replace
> them with nothing.
>
> eg these are to be trimmed.
>
> [i:abcdef]
> [i:bcdefg]
> [i:xyzab]
> [i:priftds]
>
> how can i trim them..
> thanks
>
> --
>
>