The periods are string concatenation operators (tying separate strings
together into a greater string.

In "\', \'" the \' removing the special meaning of the single quote so it
can be included as part of the string, and the commas are argument
separators.


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 5:55 AM
> To: [EMAIL PROTECTED]
> Subject: regex question
> 
> 
> Hi all,
>       i am trying to understand this regex that is supposed to make an
> insert into a mysql log. specificlly my questions are:
>       1. what are the "." (periods) doing?
>       2. in the string "\', \'" what is the ","(comma) doing
> ==============================================================
> ============
>         $query = "INSERT INTO log "
>             . "(datein, spool, mfrom, msize, mclass, mpri, nrcpts, "
>             . "inrelay, complete) VALUES (\'"
>             . $datein  . "\', \'"
>             . $spool   . "\', \'"
>             . $from    . "\', \'"
>             . $size    . "\', \'"
>             . $class   . "\', \'"
>             . $pri     . "\', \'"
>             . $nrcpts  . "\', \'"
>             . $relay   . "\', \'"
>             . ''       . "\')";
>         if (0 < $DEBUG) { print "INFO: Line " . __LINE__ . " 
> " . $query; }
> 
> ==============================================================
> ==============
> thanks alot for any help you can offer.
> 
> -- 
>   - josh
>     N8MSO
> 
> 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E    ~. .~   
> Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo-
-----------{=
>    - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to