
Search In
Hello Friends
This PHP tutorial will help you to implement a set of incremental variable in twig which you can use to show listing in twig with numbers in the first column. This will include defining twig variable and increment/decrements variable v
Hello Readers
In php we count the number of elements of an array by two ways:
1. sizeof()
2. count()
sizeof()
sizeof() function is an alias of count() and it is used to count the elements of an array.
Syntax of the function sizeof():
sizeof(a
Hello guys,
Its really helpful for integration Paypal in PHP to verify card details.
To integrate it, first you have to download the PHP-Paypal SDK, below is the direct link
https://github.com/paypal/PayPal-PHP-SDK/releases
// 1. Autoload the SDK P
There are two predefined functions in PHP for applying user defined function on each element of an array.
1. array_walk() : array_walk() applied a user function on each element of an array. It returns TRUE on success and FALSE on failure. The user
This tutorial explains the difference between array_fill() and array_fill_keys() functions, which are used to initialize or fill an array with values. The main difference is in the method of filling values in array by both functions. The details of e
Data validation becomes an important part of any of the application. It helps to make it sure that the data input by the user is proper or not.
Defining the validation rules in any application makes the form handling easier. Validation differs from
Sometime we may need to use the same variable name that you are using in the query or simply in an associative array.
Lets say you have an associative array :
$arr = array( 'totalLimit' => 50, 'limit' => 10 );
The usually what we do is to f
We can add pagination to our page.
In wordpress we can split multiple post in different pages.
We can set how many post per page we want
When multiple loops are used in a theme template file only one loop, the main loop, can be paginated.
<?ph
Data validation plays an important part in any of the application. It is very important to make ensure that user has input valid Fields or not. For example, passwords are at least eight characters long or more, User Names ,emails are unique,pho
Find is the data-retrieval functions in cakephp.
Below is the list of CakePHP find conditions :-
Name
Default
Description
type
'first'
it can be 'all', 'first'
