PHP Classes

File: examples/sanitize_associative_array_example.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP Data Sanitization   examples/sanitize_associative_array_example.php   Download  
File: examples/sanitize_associative_array_example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Data Sanitization
Verify and clean values to ensure they are valid
Author: By
Last change:
Date: 9 months ago
Size: 202 bytes
 

Contents

Class file image Download
<?php

$output
= $sanitizer->useSanitize([
   
"xss" => "<script>alert('This is an associative array');</script>"
]);

foreach (
$output as $key => $value) {
    echo
"(" . $key . ": " . $value . ")";
}