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

Remove letter from numeric textbox
I have a textbox that will search the employee database by entering in the employee ID and it will r

User input in to variable
Hi all,

I'm sure this is very easy but I'm having another brain freeze!

At the end of

Windows Authentication
I have a website which is windows authenticated.
now i want something more on this application.<

need help modifying script
Hi guys,

I'm fairly new to php and am having a bit of trouble modifying a script.

This

calculator
I can't figure out why this code doesn't work. No error messages. Page loads.

Code: <

How to calculate days from variable date?
This will be easy for one of you gurus. I want to fetch the date from a variable date, for example:<

b+ tree
Hi
can every body help me about b+ tree ?(insert & delete)

why isn't this PHP code working ???
it's suppose to find a name on the database.

<?php

$s = $_POST["lname&

Using real time in php
I'm very average at PHP and im looking to introduce time to something on my site.
Its a sports si

Using Curl_multi for processing multiple URLs
Hi,

I am at a loss as to how to implement this. I would like to be able to automatically assi

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