Category:PHP
Article From:https://www.cnblogs.com/lvchenfeng/p/9121694.html
[php] view plain copy

print?

  1. function in_array_case($value,$array){  
  2.     return in_array(strtolower($value),array_map(‘strtolower’,$array));  
  3. }  
  4.   
  5.   
  6.   
  7. $array=array(‘a’=>‘aaa’,‘B’=>‘BBB’);  
  8.   
  9.   
  10. $C=array_map(‘strtoupper’,$array);  
  11.   
  12. $d=array_map(‘strtolower’,array_keys($array));  
  13.   
  14. var_dump($C);  
  15. var_dump($d);  

Original text: https://blog.csdn.net/tstbdt/article/details/46454851

Leave a Reply

Your email address will not be published. Required fields are marked *