[Xerte-dev] Re: moodle integration

David Goodwin david at palepurple.co.uk
Sun Apr 29 22:55:33 BST 2012


On 29 Apr 2012, at 22:22, Pat Lockley wrote:

> It's usually e.g c:\\xampp\\htodcs\\
> 
> As in double slash, but php seems to handle c:/xampp/htdocs ok
> 
> The \ is escape the next character by default
> 

Yes, but a \ doesn't have any (well not much) effect in a single quoted string. 

They only really come into effect in a double quoted string.

Although as with most things in PHP, nothing is quite what it seems :

var_dump('foo\foo' === 'foo\\foo') => true
var_dump('foo\foo' === "foo\\foo") => true


thanks,
David.

Pale Purple Ltd.  (Company No: 5580814)
'Business Web Application Development and Training in PHP'

http://www.palepurple.co.uk   
Office: 0845 0046746     Mobile: 07792380669 

Follow us on Twitter: @PalePurpleLtd








More information about the Xerte-dev mailing list