Associate
Ok so I have found through a very annoying way that my system will not work on my own server as it's using php 5.2 and my hosts refuse to update. Thus I cannot use the boolean within strstr and it has to be used with the 2 arguments instead of 3 strstr($stringName, ':', true);
This means now I cannot find elements of a string on the left or right, just one side.
For instance my string structure is:
firstElement&secondElement:thirdElement
I initially had it doing this:
but I cannot do this as I get a warning which is a bug with anything from 5.2 as it only works with 5.3 are there any other ways I can do this?
Regards,
This means now I cannot find elements of a string on the left or right, just one side.
For instance my string structure is:
firstElement&secondElement:thirdElement
I initially had it doing this:
PHP:
$_first = strstr($myString, ":", true);
$third = strstr($myString, ":", false);
$first = strstr($_first, '&', true);
$second = strstr($_first, '&', false);
but I cannot do this as I get a warning which is a bug with anything from 5.2 as it only works with 5.3 are there any other ways I can do this?
Regards,