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)) {
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

need help to creat database
Hello Team, please guys i am stuck from three days with paypal issue for IPN but no luck yet now i w

How to convert this array to string
I am having problems converting this array to a string
using print_r($val[1]); I get:
Code: [

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still le

help finding hacking loopholes
i was attacked by a redirect php injection

my pc is clean of viruses

so i figure that

couldn't connect to your database
Hello I am new to php mysql

Actually i have read A tutorial on nettuts
"http://net.tu

returning data from an ssh2_exec()
here's what i got.


$conn = ssh2_connect($this->_host);
ssh2_auth_password($c

How to ... (FAQs)
... get e-mail notifications As several people asked how to get e-mail notifications when new posti

PHP Upload issue
Hi guys,

I have stumble across an interesting issue with my script and is doing my head in.

problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

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