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

modifying a property of an object from a different class
I have 2 classes:
- Math
- Distance

in my math class, I have this line:
$distance =

Help with Contact Form
I have this Form on an html page and the associated code on page.php (below).
I keep getting the

IS Retail & Manufacturing
Hi

Can IS Retail and Manufacturing activities be done in same instance ie. in same client

Output Full URL of Current Page
Let's say I am currently viewing a dynamic page:

http://www.mydomain.com/directory/index.php

php forms and database navigatio
Hello,
I'm new to php and i'd like to post the following.
I have written code to get records f

IS this code correct
The reason i ask is everything underneath it appears to be alink as well, tis blimmin annoying

rdns with php
I am trying to build a script that will show all of the different domains that are hosted on the sam

constructor ?
i have written this program and made 3 constructors in the class and i want to call them in the main

Parse XML
Good day,

I use oempro software and try to parse XMLReturn but it's not working for me, simpl

Is this possible? If one file assigned to an ID...
I have a page that lists property listings assigned to a specific user (a manage page), with brief t

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