Good Data: budget : Item was converted to a decimal number
/var/www/html/php7cookbook/source/chapter06/chap_06_post_data_filtering.php:70:
array (size=10)
  'first_name' => string 'Doug' (length=4)
  'last_name' => string 'Bierer' (length=6)
  'address' => string '123 Main Street' (length=15)
  'city' => string 'San Francisco' (length=13)
  'state_province' => string 'California' (length=10)
  'postal_code' => string '94101' (length=5)
  'phone' => string '+1 415-555-1212' (length=15)
  'country' => string 'US' (length=2)
  'email' => string 'doug@unlikelysource.com' (length=23)
  'budget' => float 123.45
Bad Data: first_name : Tags were removed from this item last_name : Item was reduced to specified length city : Item was trimmed city : Item was reduced to specified length phone : Item was trimmed budget : Item was converted to a decimal number
/var/www/html/php7cookbook/source/chapter06/chap_06_post_data_filtering.php:76:
array (size=10)
  'first_name' => string 'This+Namebad tagValid!' (length=22)
  'last_name' => string 'ThisLastNameIsWayTooLongAbcdefghijklmnopqrstuvwxyz0123456789Abcdefghijklmnopqrstuvwxyz0123456789Abcdefghijklmnopqrstuvwxyz012345' (length=128)
  'address' => string '123 Main Street' (length=15)
  'city' => string 'ThisCityNameIsTooLong0123456789012345678901234567890123456789012' (length=64)
  'state_province' => string 'California' (length=10)
  'postal_code' => string '!"£$%^Non Alpha Chars' (length=22)
  'phone' => string '12345' (length=5)
  'country' => string 'XX' (length=2)
  'email' => string 'this.is@not@an.email' (length=20)
  'budget' => float 0