fork download
  1. <?php
  2.  
  3. $json_string = '{"str1":"x66xexq"}';
  4.  
  5. $json_string = json_decode($json_string);
  6.  
  7. $str2 = 'x66xexq';
  8.  
  9. if ($str2 == $json_string->str1){
  10. echo 'Строки равны';
  11. }else{
  12. echo 'Строки не равны';
  13. }
Success #stdin #stdout 0.03s 23756KB
stdin
Standard input is empty
stdout
Строки равны