i got some vbscript code from the internet somewere and i’m trying to convert it to php. and no matter what i try i keep getting this error
Parse error: syntax error, unexpected ‘stripos’ (T_STRING), expecting ‘(’ in C:\UwAmp\www\matrix\matrix.php on line 148
heres the code
If InStr(1, clj, "<span", 1)>0 Then - original vbscript code
if stripos(1, $clj, "<span", 1) > 0) { - my php code
vbscript InSTR command
InStr([start,]string,find[,compare])
php strpos command
strpos(string,find,start) - php strpos command
what am i doing wrong i’ve tried everything i even tried stripos but no luck with that either… i seen somewere they had a / right after the
<span so i think something like this maybe not sure lol
if stripos(1, $clj, “<span/”, 1) > 0) { i did try it and didn’t do anything
still same error.
if you want the full code i can paste it somewere its kinda long…
thanks for any help u can give
Snoop