Home » Tag Archives:phpphp

Tag Archives: phpphp

Regex for password PHP

December 4, 2017 Php Leave a comment

Questions: I found a script online and it has a password regex in JavaScript. I still want to use it, but for more security I want to use PHP to validate my password too but I’m useless with reg...

Get the sum of digits in PHP

December 4, 2017 Php Leave a comment

Questions: How do I find the sum of all the digits in a number in PHP? Answers: array_sum(str_split($number)); This assumes the number is positive (or, more accurately, that the conversion of $number ...

Why do you still use PHP? [closed]

December 4, 2017 Php Leave a comment

Questions: I have a couple of years as a PHP developer under my belt now, and I have to admit other web languages/frameworks (ASP .Net and Ruby on Rails especially) are looking much more tempting than...

php semaphore doesn't work

December 4, 2017 Php Leave a comment

Questions: I’ve got the following code and the semaphore wouldn’t lock it as expected. (I’m aware of apc_inc. This is not what I’m looking for.) $semkey = sem_get(123); sem_acq...