Hi,
On a project I'm migrating from Classic ASP to PHP and I have a few questions about how strings work in PHP.
I'm trying to parse this text to pull out variables:
<Admin last="2" type="x AND y">
I want to pull out these string values from this text:
Admin
last (2)
type (x AND y)
So my code might look like this:
$query = "Admin";
$last = 2;
$type = "x AND y";
Basically I want to test for the first value (to determine what query to run) and use the other values to build the query.
Thanks for any help/ideas. I just spent an hour reading about strings on PHP.net but can't make heads or tails about how to do this in PHP.
Tim
http://www.reachcustomersonline.com