Hi how can I use strops multiple times I am trying to filter the skins api to only show
skins and this wokrs but it only allows you to do one it currently looks like this
if ( strpos( $ret['type'] = $type, 'parserhook' ) === 0 ) {
continue;
}
but I would like to get it to do
if ( strpos( $ret['type'] = $type, 'parserhook', 'specialpage'
) === 0 ) {
continue;
}
Or is there something simler to this I could use or is there one that allows to express
only skin is allowed to show through skin api instead of blacklisting the other types.
Please help.
Show replies by date
Nether mind by using
if ( strpos( $ret['type'] = $type, 'skin' ) === false ) {
continue;
}
worked.
On Saturday, 14 February 2015, 19:51, Thomas Mulhall
<thomasmulhall410(a)yahoo.com> wrote:
Hi how can I use strops multiple times I am trying to filter the skins api to only show
skins and this wokrs but it only allows you to do one it currently looks like this
if ( strpos( $ret['type'] = $type, 'parserhook' ) === 0 ) {
continue;
}
but I would like to get it to do
if ( strpos( $ret['type'] = $type, 'parserhook', 'specialpage'
) === 0 ) {
continue;
}
Or is there something simler to this I could use or is there one that allows to express
only skin is allowed to show through skin api instead of blacklisting the other types.
Please help.