Try a regular expression.
/errorCode=\([~\]+)\/
I'm not good at that kind of syntax, but something very similar to that
should work.
-- Rob
Qt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
dear Sirs,
I have this string;
job_resp errorCode=4194337 description=Originator you
I can not understand very well,
shoul I write something like that
$NewError = /errorCode=\([~\]+)\/;
Rob Adams [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Try a regular expression.
/errorCode=\([~\]+)\/
I'm not good at that kind of syntax, but something very similar to that
You could ofcourse to the easyway out splitting, hehe.
example :
$yourstring = 'job_resp errorCode=4194337 description=Originator you';
$temp = explode('errorCode=',$yourstring);
$temp2=explode('',$temp[0]);
echo $temp2[0];
Voila!
Should always work, aslong as there there are always around the
dear Kim,
Thanks for your clever soltion but;
If string will have another errorCode before 'job_resp errorCode=
It will use first one value.
What can we do better than this one?
Kim Steinhaug [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
You could ofcourse to the easyway out
Well, still no problem.
If there are only one instance of the job_resp errorCode you
just alter the explode() abit.
Else, the clever part with array_push()
Let me do some online coding here, might contain some errors though, :)
$error = new array();
$yourstring = 'job_resp errorCode=4194337
Could you please adjust your computer time or the timezone setting? Your
mail arrives as if it was send tomorrow morning. Quite confusing when
replies arrive at an earlier time and hard to follow this list.
At 07:24 15-11-2003, you wrote:
I can not understand very well,
shoul I write something
6 matches
Mail list logo