LoginSignup
0
1

More than 5 years have passed since last update.

多次元配列に対するstripflashes

Last updated at Posted at 2016-05-17
素人の個人的メモ兼、スニペット
勉強も兼ねてますのでコメントとかも感謝です。
(忙しさによっては返信が遅れるかもしれません)
if( !function_exists('array_stripslashes') ){
  function array_stripslashes($v){
    //再帰処理
    $v = is_array($v)?
            array_map('array_stripslashes', $v):
            stripslashes($v);
    return $v;
}}

memo
KEYに対しては処理しない。KEYは対象外でいいのかな?

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1