Tag Archives: regex

(PHP) Regex for trimming whitespace

 

Posted in PHP | Also tagged , , , , , | Leave a comment

Mapping URLs to action parameters (Zend Framework)

Suppose you want to map /fetch/google.com to the fetch action within the Fetch controller with google.com as a parameter. Zend Framework allows you to create a regex route for this purpose.

Posted in PHP | Also tagged , , , , , , , | Leave a comment