
Search In
Displaying the most viewed posts becomes very helpful for every user to have a look at trendy blog post in your WordPress.
There are so many plugins that will help us easily to add most viewed/poipular posts in our WordPress website. But there is an
Hi Reader's,
Welcome to FindNerd, today we are going to discuss exceptions in CakePHP.
We can use exceptions for a variety of uses in our application when implementing any web application in CakePHP. CakePHP uses the exceptions internally to sho
There are n number of difference between client-side and server-side programming.
The below code is split into two entirely separate parts, the server side and the client side.
|
---------->
HTTP
Firstly let us know What is the user defined function in php ?
This function declaration starts with the word "function" and user defined function name is not case-sensitive.
User defined function starts with a letter not a number.
Use of user d
The substr_count() in php is a string function which counts the no of times the sub string occurred in the string.
this function is case-sensitive.
the syntax of the function is as :
substr_count(string,substring,start,length)
Here , the string i
Hello Readers
If you want to calculate difference between two dates using PHP , use below code.
comment: Suppose we have the two dates below date1 and date2
$date1 = "2014-06-11";
$date2 = "2015-07-16";
comment:then we get diffrence with absolute
cal_days_in_month() function is a PHP calendar function. This function always return number of days in a specified calendar for month of year .
Syntax is : -
cal_days_in_month ( $calendar, $month, $year );
parameter are : -
calendar -
In php the sizeof() Function returns the number of elements in an array.
Syntax
sizeof(array,mode);
The argument array specifies the array and the mode specifies whether to count multidimensional array or not
the value 0 specifies do not count a
To convert variables of one type to another is known as type conversion. There are two types of type conversion:
Implicit type conversion
Explicit type conversion
Implicit type conversion : It automatically converts the data type to
Hi Readers,
Welcome to FindNerd, today we are going to discuss how to find the number of days between given two dates in PHP?
If you want to calculate the difference between two dates then you should use date_diff() function for finding
