On 9/04/2011, at 3:39 PM, Scotty Logan wrote:
> On Apr 8, 2011, at 8:20 PM, Kirk Bailey wrote:
>> in otherwords, the entire idea of picking one of N objects, whatever they
>> are- strings, numbers, gummybears, lined up in a listing, and return the one
>> item selected. This seems a common enough
seems to me that you have an array with integers as the keys.
$desired_key = rand(0, count($array));
$desired_value =
$array[$desired_key];
Cheers,
Curtis
Simon J Welsh wrote:
> On 9/04/2011, at 3:39 PM, Scotty Logan
wrote:
>
>> On Apr 8, 2011, at 8:20 PM, Kirk Bailey
wrote:
>>> in otherwo
At 2:53 PM -0500 4/8/11, Jay Blanchard wrote:
[snip]
whats the best way to learn about security in php?
[/snip]
Study, study, study!
Chris Shiflett is a recognized expert on PHP security -
http://shiflett.org/
He has a great book on PHP Security -
http://www.amazon.com/exec/obidos/ASIN/0596006
Curtis Maurand wrote:
>
>
>
> seems to
me that you have an array with integers as the keys.
>
>
$desired_key = rand(0, count($array));
sorry, I hadn't had
coffee, yet. The line above should be:
$desired_key = rand(0, count($array) - 1);
>
> $desired_value => $array[$desired_key];
>
> Ch
Not one book.
1. For learning from scratch
One of the books recommended by the other esteemed posters.
2. Reference
http://www.php.net/manual/en/ and/or the corresponding CHM.
3. OOP with PHP
PHP Objects, Patterns and Practice, Third Edition
http://apress.com/book/view/9781430229254
4. Mor
5 matches
Mail list logo