PHP | array_slice() Function

By Prem Tiwari in PHP Documentation. Updated on


array_slice() is an inbuilt function of PHP library and it is used to slice an array according tot the user needs. array_slice() — It returns the sequence of elements from the array array as specified …

New Global Constants in php 7

By Prem Tiwari in PHP Documentation. Updated on


Here is the list of New Global Constants in php 7. Below is the syntax how you can use PHP global variables inside your code. Examples to use PHP global variables Core Predefined Constants PHP_INT_MIN …

How to use a switch case ‘or’ in PHP?

By Prem Tiwari in PHP Documentation. Updated on


Problem: How to use a switch case ‘or’ in PHP? Solution: This can be achieved in 2 ways. PHP Switch case syntax Use the switch statement to select one of many blocks of code to be executed. …

Solved Programs