[PHP] Space in regex

2006-11-16 Thread Dotan Cohen
I'm trying to match alphanumeric characters, some common symbols, and spaces. Why does this NOT match strings containing spaces?: [A-Za-z0-9\'.&-:underscore::space:] I've also tried these, that also fail to match strings containing spaces: [A-Za-z0-9\'.&- :underscore:] [A-Z a-z0-9\'.&-:underscore

Re: [PHP] space sensitive?

2003-09-14 Thread Jason Wong
On Monday 15 September 2003 06:55, Stevie D Peele wrote: > Is PHP space sensitive?? No. Statements are terminated by a semi-colon. This: - echo "This is the same" ; - is the same as -

Re: [PHP] space sensitive?

2003-09-14 Thread Ryan A
://MrSahaf.com - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Stevie D Peele" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 1:13 AM Subject: Re: [PHP] space sensitive? > Stevie D Peele wrote: >

Re: [PHP] space sensitive?

2003-09-14 Thread John W. Holmes
Stevie D Peele wrote: Is PHP space sensitive?? PHP is very sensitive about it's space. Don't go into it's personal space otherwise you can upset it and cause it to cry. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The M

[PHP] space sensitive?

2003-09-14 Thread Stevie D Peele
Is PHP space sensitive?? The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! -- PHP General Mailing List (http://www.php.net

Re: [PHP] space

2003-04-03 Thread Leif K-Brooks
The manual is your friend! :) www.php.net/nl2br Diksha Neel wrote: hi all! in an html file thru a php script, i have to put in some data. i am using variable $string to write the data as under. what i want to know is how can i ensure that the value of $badd1 and $area get written on different lin

[PHP] space

2003-04-03 Thread Diksha Neel
hi all! in an html file thru a php script, i have to put in some data. i am using variable $string to write the data as under. what i want to know is how can i ensure that the value of $badd1 and $area get written on different lines. in other words, i want to know how to use '\n' here. thanks, dik

Re: [PHP] space in strings

2001-08-13 Thread CC Zona
In article <001301c12476$3420f300$82602c3f@2pqjp01>, [EMAIL PROTECTED] (Jack Dempsey) wrote: > > that removes trailing space - but is there one that removes ALL spaces > > from a string? Like: > > > > $string = "this is a string"; > > rmspc($string); > > // $string is now "thisisastring" > $st

RE: [PHP] space in strings

2001-08-13 Thread Jack Dempsey
$string = str_replace(' ','',$string); -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 12:03 AM To: [EMAIL PROTECTED] Subject: [PHP] space in strings Some time ago I needed a function that remove space in string

[PHP] space in strings

2001-08-13 Thread Martin Skjoldebrand
Some time ago I needed a function that remove space in strings. Sure there is one that remove space at the start of the string, and one that removes trailing space - but is there one that removes ALL spaces from a string? Like: $string = "this is a string"; rmspc($string); // $string is now "this

Re: [PHP] space increment

2001-01-11 Thread Jason Murray
Wee Chua wrote: > > Hi all, > I would like to have codes which will could automatically generate as many > as sequence number variables based on how many rows return from the query, > such as if I have 10 rows from the query result, I would have > $var1,$var2,$var3,$var4and so on, but the val

[PHP] space increment

2001-01-11 Thread Wee Chua
Hi all, I would like to have codes which will could automatically generate as many as sequence number variables based on how many rows return from the query, such as if I have 10 rows from the query result, I would have $var1,$var2,$var3,$var4and so on, but the value of $var1 would equal to 3