Problem with Strpos In PHP

前端 未结 3 719
礼貌的吻别
礼貌的吻别 2020-12-21 06:07

I\'m writing a simple function and for some reason(probably a simple one) it\'s not working for me and I was wondering if you guys could help me out.

functio         


        
3条回答
  •  旧时难觅i
    2020-12-21 06:39

    Strpos won't work with an int, so you need to cast the ID to a string. Try this:

    $ID = (string)$postID;
    

提交回复
热议问题