As I talked about earlier, I am beginning to learn Python. I thought that this could be a good opportunity to document what I am learning and share my thoughts, experience and code. To be totally cliche, I figured I would first demonstrate how to create the Hello World program in Python. The most simplistic… Read more »
Posts Tagged: line
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 »
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 »