È possibile utilizzare un carattere jolly in un'istruzione if?Stringa corrispondente con caratteri jolly in stile shell (ad esempio, *)
Il mio codice:
*
= wildcard
if ($admin =='*@some.text.here') {
}
$admin
sarà uno di questi:
- [email protected]
- bot bot @ po '!. text.here
- [email protected]
http://php.net/manual/en/function.preg-match.php – Teson
No, ma probabilmente si può usare preg_match a così ciò che si desidera. – j08691
cosa c'entra questo con IRC? –