hello,
What I want to do is split a string where there is a $
The problem is that it reads it as a variable, and therefore sees no $, and then does not split.
EG)
$MyString=($myValue /$yourValue);
list($restOfString, $theField1String) = split ("$", $MyString, 2);
list($theField1, $restOfString) = split (" ", $theField1String, 2);
So what I am trying to do is get that first variable name:
"myValue" out of the "$MyString"
It will work if I change the $ in MyString to a &
EG) $MyString=(&myValue /&yourValue);
list($restOfString, $theField1String) = split ("&", $MyString, 2);
list($theField1, $restOfString) = split (" ", $theField1String, 2);
Then it will get the "myValue", and "yourValue" names.
Do you know of any way I can leave $ in there and have it work?
Thanks for your time. Any help is greatly appreciated.