Introduction

From: Date: Mon, 28 Jul 2014 18:21:41 +0000
Subject: Introduction
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969385088@lists.php.net to get a copy of this message
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 (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 (#969385088) next »