Category Archives: PHP

Filtering symbols inputs with PHP using ctype_alnum

Recently, i was building a script that would filter out “unwanted” symbols on text inputs and i saw an awesome function that would filter out unwanted symbols and only retain alpha numeric characters…

Meanwhile, google magically displayed this function on the search results:

cytype_alnum. (See link http://php.net/manual/en/function.ctype-alnum.php)

With this function, it helped me filter out important inputs without rethinking the “wheel”, in a developers term: It saves me from modifying my own RegExp rule that could be filtered out with the one’s php built right into the core.

I hope this helps you! Happy coding! :)

 

PHP 5.4 Released!

The PHP development team has successfully pushed the next generation forward, featuring 3 awesome updates:

  1. Traits – Traits is a mechanism for code reuse in single inheritance languages such as PHP.
  2. A Shortened Array Syntax
  3. ..And a built-in Web Server.

And over 100 bug fixes shipped on this version. To see more changes, take a time to view the Change Logs.

At the time of writing, there are no available Windows Binaries Installer available for download. This may take a day or two, but i’ll keep you posted once it has been pushed out in the public.

 

Follow me on twitter @aaroncajes to get the latest tech news and geek stuff.