Curly Bracket Delimeters.


Posted on 16th Feb 2014 07:03 pm by admin

I'd always believed that the starting and ending delimeters in preg_ functions had to be the same character, but recently discovered that you can use the curly brackets.

Example:
Code: [Select]if(preg_match('{[0-9]}', $input)) {
Did you know?Explore Trending and Topic pages for more stories like this.
I was just wondering if there was any disadvantage/advantage of using this method?
No comments posted yet

Your Answer:

Login to answer
195 Like 29 Dislike
Previous forums Next forums
Other forums

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

Check premium expire
Hi,

I am making a simple file hosting site and want to check if users premium subscriptions h

Google Wave
So... has anyone used it yet? Is it any good?

http://wave.google.com/help/wave/about.html#vid

Converting numbers to months
The porgram works -just need the last function(month_convert_ to convert numbers to months -thanks.

split values
I have values that are returned to me in this format:

name=>test,age=>49

Thread in PHP
Thread in PHP
Some basic use and basic code for thread in php
This is my question?

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

if description does not contain the following words
Hello everyone,

I am parsing a MS Excel (.xls) file and adding it's content to a mySQL databa

recrawling
Can anyone suggest me how may i know a page is updated before it is being downloaded, so that i can

PHP - MySQL Fail
My PHP code will only execute the first part of my code...

Code: <?php

sessio

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash