evidenttutorials.com
Home HTML JavaScript jQuery PHP Python Server SQL
Page 1 of 3. Next Last
December 29, 2024

Dividing an array into smaller group in PHP using array_chunk function

There are times when we need to divide an array into smaller chunks, for the same in PHP we have a build in function called array_chunk. The array_chunk() function in PHP takes 3 arguments, first argument is the original array which need to be divided into smaller groups, second argument is array chunk size, third parameter takes boolean values, if we need to keep original array index as is.

Read more... 
December 29, 2024

Set and Get variables in CodeIgniter session

CodeIgniter sessions are very import to maintain variables across multiple web pages or multiple http requests. With session variables we can easily identify users are coming with same session even if they are accessing different web pages of a website. CodeIgniter session library makes developer's life easy and provide easy way to maintain session variables.

Read more... 
December 27, 2024

Display PHP errors with built in functions

By displaying PHP errors we can help ourself to debug our programs/code in better way. We can easily identify issues present in our code and improve work quality. We can display all errors or we can display fatal errors, warning errors or notice errors also.

Read more... 
December 22, 2024

Setting and getting timezone in PHP

In PHP, date_default_timezone_set() is a function that sets the default timezone for all date and time functions in your script and date_default_timezone_get() is a function that retrieves the current default timezone used by all date and time functions in the script.

Read more... 
December 08, 2024

How to merge two json file with PHP

We can merge two json files which has same json structure. In our example we will create two json file and we will merge those with the help of PHP code.

Read more... 
December 07, 2024

How to merge two xml file with PHP

We can merge two xml files which has same xml structure. In our example we will create two xml file and we will merge those with the help of PHP code.

Read more... 
November 01, 2024

Get two arrays diff in PHP using array_diff function

The array_diff function is very important to get difference of two arrays. It compares two arrays and return the values in the first array that are not present in the second array. This is particularly useful when you want to filter out elements or identify differences between two arrays.

Read more... 
October 13, 2024

Merging two or more arrays in PHP using array_merge function

There are times when we need to merge two and more array, for the same in PHP we have a build in function called array_merge. The array_merge() function in PHP takes two or more arrays as arguments and joins them into one big array. If two arrays have the same key, the value from the second array replaces the one from the first.

Read more... 
August 17, 2024

PHP Comment

If you want to write some notes in your PHP code file which you do not want to show on the webpage but want to include in your PHP code file for better understanding your code. So for it you can create comments in PHP.

Read more... 
August 17, 2024

PHP implode()

implode() function is one of the most important PHP's built in function of array. Sometimes it happened that you want to convert an array's elements into a string so for the same you can use implode function in PHP. implode function requires two string arguments first is a separator string and second array from which you will create the string.

Read more... 
Page 1 of 3. Next Last

Latest Posts

You can find latest posts below:

What does clearsessions command do in Django? What does collectstatic command do in Django? How to create a new Django app? How to create a new Django project? How to run a Django project?
About Us Privacy Policy Disclaimer