Re: Introduction

From: Date: Tue, 29 Jul 2014 06:57:41 +0000
Subject: Re: Introduction
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969385089@lists.php.net to get a copy of this message
Hello Brandon, thank you for your contribution and effort to make PHP Manual better. Probably someone with proper credentials will soon review patch you've submitted and merge or reject it. Cheers, Maciej. PS: We have automated weekly reminders about awaiting patches, so if your next change will be small and non-controversial (for example typo or error in the code listing), there is no need to notify us via this list. It will be reviewed sooner or later ;)
Hi folks, My name is Brandon Kelly. I'm the owner of a company called Pixel & Tonic, who writes a PHP-based commercial CMS called Craft (http://buildwithcraft.com/). We're big fans of PHP and love where it's headed, and are quite a bit invested in it. So this is probably overdue, but I would like to start dipping my toe in the community. Anyway. I just came across this code example in Twig's documentation for the 'matches' operator <http://twig.sensiolabs.org/doc/templates.html#comparisons> (a wrapper for preg_match):
{% if phone matches '{^[\d\.]+$}' %}
...and had no idea what those curly braces were doing in there. Some searching led me to the PHP docs' Delimiters page (http://php.net/manual/en/regexp.reference.delimiters.php), where the {...} syntax is listed as a valid delimiter for regular expressions, but it's awkwardly down the page a bit, away from the other accepted delimiters, after talking about preg_quote(). Looks like it's a mistake - maybe a version control merge gone bad. I just signed into your documentation tool via my Google account and added the {...} syntax to the list of accepted syntaxes at the top, and removed the paragraph about it, as it doesn't seem necessary. Saved it, presumably as a patch, so feel free to review that. I expect I'll be proposing additional edits in the future, if I come across any other points of confusion. Have a good week, Brandon


« previous php.doc (#969385089) next »