Welcome!
餃
閮餃
蝢撖園
蝢撖嗥曄
蝢撖嗉憯
蝢撖嗉賣
蝢撖嗅啣
擐
>
摮豢雄 / Cultivation Career
>
摮賊 Academy
>
蝘摮
>
蝘
>
鞈閮
>
蝔撘閮剛
>
PHP
Advanced
PHP
雿:
銝餅:
Tags:
Message:
mepoadm Wrote: ------------------------------------------------------- > For a case-insensitive in_array(), you can use > array_map() to avoid a foreach statement, e.g.: > > <?php > function in_arrayi($needle, $haystack) { > return in_array(strtolower($needle), > array_map('strtolower', $haystack)); > } > ?> > > > Reference and source: > 1. User Contributed Notes in PHP Manuel (2009.02) > 2. Q&A Discussion in Stack Overflow (2010.10)