Wildcard or contains operator in PHP
Posted: Mon Feb 14, 2005 2:41 pm
hey all, Is it possible to get a wildcard in php or is there a contains operator in php?
What i'm trying to do is:
I'm trying to make it so that if $userBorwser contains the word "firefox" to display a different code.
Thanks, hope you understand.
What i'm trying to do is:
Code: Select all
<?php
global $userBrowser;
$userBrowser = $_SERVER['HTTP_USER_AGENT'];
$fx = "[wildcard]Firefox[wildcard]";
if($userBrowser==$fx)Thanks, hope you understand.