Hi,
I have this code:
if ( strpos( $_GET[ 'y' ], array( '/', '.', '\\', '%', '#', ';' ) ) === false
it worked fine on php5 but now on php 8 I get this error:
strpos(): Argument #2 ($needle) must be of type string, array given
do I have to get rid of that line altogether or is there any alternative fix out there?
Thank you.
source https://stackoverflow.com/questions/76075729/strpos-argument-2-needle-must-be-of-type-string-array-given
No comments:
Post a Comment