Any website that stores users login information has to store their passwords. One thing that provides an extra layer of security for your users information is to do one way encryption on their passwords. You could in theory store their passwords as plain text, but if someone were able to get in to your database,… Read more »
Posts Categorized: Learn PHP Now
PHP Function – str_replace
The str_replace function is used to replace part of a string with another string. The syntax of this PHP function is detailed below: <? mixed str_replace( $search, $replace, $subject, $count ); ?> $search – This can either be a string value or an array of strings. This will be the string or strings you want… Read more »
PHP Boolean Type
The boolean data type in PHP is very easy to use (and why should it be difficult, it is either True or it is False). The basic way to set a boolean value is to use the true and false keyword. Unlike other programming languages, true and false are case insensitive so you can either… Read more »
Ternary Operator – Your Best Friend
If you have never used the Ternary Operator, or ? operator, your life is about to change. The ternary operator is used as a shorthand for if .. else structures that can really clean up your code. Some may want to classify this under a intermediate or advanced skill, but it is so useful that… Read more »
dBug. Awesome PHP Debugger
I just ran into this awesome PHP class called dBug. It works like print_r, but does so much more. You can expand and collapse anything in the structure you use it with. You know no idea how nice this will be to parse large data structures with. So nice. Check it out at: http://dbug.ospinto.com/