Home / PHP / Beginners

PHP - Beginners Tutorials

ucfirst() Make a string's first character uppercase
ucfirst() Make a string's first character uppercase

This tutorial will teach you how to uppercase the first character of a string.

Comparing Strings with strcasecmp() function
Comparing Strings with strcasecmp() function

PHP strcasecmp() function: This function works same as strcmp() which is case sensitive. If no case sensitivity is required, then you can use strcasecmp() function.

Comparing Strings with strcmp() function
Comparing Strings with strcmp() function

PHP strcmp() function: PHP offer a bit more than just comparing strings and returning true or false. The strcmp() function compares two strings and this comparison is case sensitive.

Comparing Strings
Comparing Strings

String comparing in PHP is one of the most important part of our projects. Comparing strings seems like an easy task but you will have to remember some key differences when using comparison operators

Assignment = vs Equal == vs Identical === Operators in PHP
Assignment = vs Equal == vs Identical === Operators in PHP

A single equal sign = is the basic assignment operator in PHP. Don't think this sign as "equal to". The variable on left side of = gets set to the value of the expression on the rights.

Comparison Operators
Comparison Operators

Comparison operators allow you to compare two values. These operators test two values against each other, and if they relate correctly, the test returns true.

Categories
Contact us | Privacy Policy Copyright © sourceDaddy.com 2008 - 2012