Do you have a question? Post it now! No Registration Necessary. Now with pictures!
July 28, 2008, 1:15 pm
rate this thread
<edit name="some_value" name2="some_value" name3="value with spaces">
I had just been splitting on whitespace, until I though of the value
with whitespace already in it:
Is there a lightweight easy way to do this in PHP? In perl this is
neither easy and lightweight.
Re: parsing tags
Genius. I like that a lot.
I think I'll split on '/"\s+/'
What happens if this should occur?:
$key = '';
$key2 = ' A';
$ARRAY[$key] = 'some_val';
$ARRAY[$key2] = 'some_val';
From my code with $key2 it looks like the leading space is ignored as I
can retrieve this with: $ARRAY['A']. I'll run some more tests shortly as
I may be confused as that doesn't seem right.