If you are certain the format will ALWAYS be as you indicate, then try:
eregi("width=([0-9]*) height=([0-9]*)", $mystring, $reg);
$newstring = $reg[1]," x ".$reg[2];
NOTE: I don't have PHP here at work (I've got it at home). So you may have
to tweak this.
-Original Message-
From: Luke
use substr
http://www.php.net/manual/en/function.substr.php
good luck
Jeroen
- Original Message -
From: "Luke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 08, 2001 11:09 AM
Subject: [PHP-DB] Deleting characters from a string...
> Hi,
>
> I have a string that sa