PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $first_name = "<script>alert();</script>"; $middle_name = 'Robert'; $last_name = 'Smith'; $username = 'testusername1'; $email = "testemail@mail.com"; $password = 'banana1'; // Here goes your string which is an array of the above variables... $strings = array ($first_name, $middle_name, $last_name, $username, $email, $password); // Here goes the trick :) $strings = array_map('htmlspecialchars', $strings); echo $first_name;
Show:  
Copy Clear