Welcome Guest, Not a member yet? Register   Sign In
Simple string task ?! :)
#1

[eluser]ven_dev[/eluser]
I almost finished my first CI website,however I have a little problem now.
On my local pc my php version is 5.3 but on the server its 5.2.*

In my core I use strstr() function with the third parrameter bool.(not supported in <5.3)

What I need to do is:

$string = 'some different string every time where my need is missing in this strange string';
$before = 'string';
$after = 'missing';

And what I need to get is the code between 'string' and 'missing'.
And the final need is 'every time where my need is';

The words string and missing are always there,only the answer is different everytime.

I hope I explained it good.
Please help me you good coders Tongue


Messages In This Thread
Simple string task ?! :) - by El Forum - 05-12-2012, 07:55 AM
Simple string task ?! :) - by El Forum - 05-12-2012, 10:20 AM
Simple string task ?! :) - by El Forum - 05-12-2012, 10:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB