Aswin Lutchanah

Hybrid Social Media Specialist + Php/MySql Developer Metz (Développeur Php/MySql Metz) + SEO-SMO

I was looking for a way to check if a string contained only numerical values.  I thought that the php function is_numeric() would do the job. I was wrong.

  1. echo is_numeric(555); // 1
  2. echo is_numeric(55.55); // 1
  3. echo is_numeric(+55.55); // 1
  4. echo is_numeric(-55.55); // 1
  5. echo is_numeric(+55.55); // 1

Facebook ids (for developers)

(more…)

Posted In: PHP, SMO, Web Development

Tags: , , , ,

Leave a Comment