Posted by Daniel Dumas on June 16, 2009 :: 138 views :: 3 Comments »
weee after 2 months of no post i’m alive again hehe. .i have been very busy this past months, im still busy but i will try to post again to make this blog alive again hehe. .i will update this first to new version of wordpress so im updated.. i got busy last months doing magento and other website for my clients so i missed posting all i wanted to post about and now its gone in my head hehe. .
Share and Bookmark this Post..
Posted by Daniel Dumas on March 05, 2009 :: 1,281 views :: 8 Comments »
PHP’s === Operator enables you to compare or test variables for both equality and type. Refer below for example.
<?php
//define variables..
$str = '9';
$int = 9;
//Returns true since both variable contains the same value..
$res = ($str==$int);
//Returns false since the two variables are not of the same type..
$res = ($str===$int);
?>
Share and Bookmark this Post..
Posted by Daniel Dumas on March 03, 2009 :: 794 views :: 6 Comments »
To compare php variables to determine whether they are the same or different.. you can use PHP Comparison Operators. See below for a list of examples..
I. Define the Variables
<?php
$num1 = 9;
$num2 = 9;
$num3 = 22;
?>
A. The Less Than Operator
<?php
//Returns true if variable in the left side is less than the right..
$res = ($num1 < $num3);
//returns true..
?>

Share and Bookmark this Post..
Posted by Daniel Dumas on January 18, 2009 :: 2,011 views :: 6 Comments »
You can concatenate or add strings together using the PHP string concatenation operator represented by the period sign ( . ). refer to the examples below.
<?php
// intialize variables
$username = "daniel";
$domain = "danieldumas.com";
// the variable string $username and $domain can be combine using the concatenation operator
$email_address = $username . '@'. $domain;
//the variable $email_address now contains the value "daniel@danieldumas.com"
?>
You can also concatenate simultaneously. . 
Share and Bookmark this Post..
Posted by Daniel Dumas on January 04, 2009 :: 1,098 views :: No Comments »
Using Arithmetic Operators in PHP you can perform mathematical operations on PHP variables. refer to the example below.
Using PHP Arithmetic Operator
//define variables
<?php
$num1 = 50;
$num2 = 30;
//Addition
$sum = $num1 + $num2;
//Subtraction
$difference = $num1 - $num2;
//Multiplication
$product = $num1*$num2;
//Division
$quotient = $num1 / $num2;
//Modulus
$remainder = $num1 % $num2;
?>
you may also use the shorthand using the PHP Assignment Operator and Arithmetic Operator together. 
Share and Bookmark this Post..
Posted by Daniel Dumas on December 31, 2008 :: 1,273 views :: 5 Comments »
PHP Operators are very important, if PHP variables is the building blocks of PHP programming PHP Operators is the tool that lets you do something useful with variables. php comes with many useful operators such as Assignment Operator, Arithmetic Operator, String Operator, Comparison Operator and Logical Operator. 
Share and Bookmark this Post..
Posted by Daniel Dumas on December 31, 2008 :: 1,009 views :: 2 Comments »
Wahhhhhhhh happy new year everybody its been a month since my last post im super duper busy kasi sa mga projects wahhhhhhh by the way happy new year sa lahat welcome me back nalang hehe ;) hmmm this new year my new years resolution is to post more on my blog weeeeeee and to socialize to my co-bloggers again weeeeee i been so busy kasi thats why i dont have much time to blog again but i will make bawe this yeah weeeeeeee ;) Happy new Year! ;)
Share and Bookmark this Post..
Posted by Daniel Dumas on November 28, 2008 :: 1,616 views :: 5 Comments »
Detecting the datatype of a specific PHP variable can be done by using PHP gettype() function. refer below for example.
<?php
//define variables
$on = true;
$age = 20;
$name = "daniel";
$price = 99.99;
//Returns Boolean
echo gettype($on);
//Returns String
echo gettype($name);
//Returns Integer
echo gettype($age);
//Returns Double
echo gettype($price);
?>

Share and Bookmark this Post..