what is the PHP wildcard character in an array
<?php $banned = array('User:%','User_talk:%');
$allowed = array('edit','history');
if (in_array($_GET['title'], $banned)) {
// do this
}
else {
// do nothing
}
?>
the title's from $_GET look like this:
title=User:randomname
title=User:example.com
title=User:another-name
title=User:user-name.admin
i have tried using the following symbols:
<?php $banned = array('User:$','User_talk:$');
<?php $banned = array('User:%','User_talk:%');
<?php $banned = array('User:*','User_talk:*');
none seem to be working