Menu

How can I be a good
WEB ADMINISTATOR?

Entries in string contains

PHP String Contains and Identical Operators

Jon Volks
Written By | @webproninja

PHP doesn’t have an operator for CONTAINS like ColdFusion but there is a work around. What we are going to use is the strpos() function which pretty much returns the position of one string within another string. Example: strpos(“You are here!”, “are”); The result will return 4 (remember PHP starts on 0). This will work […]