fork download
  1. <?php
  2.  
  3. $str='[0,"^(\\\\w)+$","Your email is unvailable"]';
  4. $arr= json_decode($str,true);
  5. var_dump($arr); // null
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  int(0)
  [1]=>
  string(7) "^(\w)+$"
  [2]=>
  string(24) "Your email is unvailable"
}