PHP query

They have: 1 posts

Joined: Mar 2009

Hi

Hopefully a simple query from a PHP newbie. I am examining some code and find the following function call :

theme('gmap', array('#settings' => $settings));

I can't find what the # character does. This may be because my PHP book has nearly 100 pages. Alternatively it's because I'm having a dumb moment.

Any pointers ?

Thanks

Swampy

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

The pound symbol (#) has no significance in this case. It's just part of the string.

greg's picture

He has: 1,581 posts

Joined: Nov 2005

£ is pound symbol in uk, other countries call # the pound

The hash symbol (#) is used in hacking methods, trying to manipulate the query to inject.
using mysql_real_escape_string() resolves 99.99% of those types of hack.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.