Category: PHP

PHP array_slice() Function

PHP has a built – in function, array_slice() , that you can use to extract a range of elements from an array. To use it, pass it the array to extract the slice from, followed by the position of the first element in the range (counting from zero), followed by the number of elements to […]

PHP array_map() Function

The array_map() function sends each value of an array to a user-made function, and returns an array with new values, given by the user-made function. Tip: You can assign one array to the function, or as many as you like. Parameter Description myfunction Required. The name of the user-made function, or null array1 Required. Specifies […]

PHP array_shift() Function

The array_shift() function is used to remove the first element from an array, and returns the value of the removed element. Note: If the keys are numeric, all elements will get new keys, starting from 0 and increases by 1. Parameter Description array Required. Specifies an array Syntax Example

PHP in_array() Function

The in_array() function searches an array for a specific value. If the third parameter strict is set to TRUE then the in_array() function will also check the types of the $value. Note: If the search parameter is a string and the type parameter is set to TRUE, the search is case-sensitive. Parameter Description search Required. […]

How to Responsive Datatable

In the modern world of responsive web design tables can often cause a particular problem for designers due to their row based layout. Responsive is an extension for DataTables that resolves that problem by optimising the table’s layout for different screen sizes through the dynamic insertion and removal of columns from the table. Jquery Code

Common Ajax Function in Jquery and Javascript to Call Server

Ajax makes your application more flexible, you don’t need to reload or refresh the whole body for small changes, you can made changes in any part without loading page. Common Ajax function use in jquery click event, change event, blur event etc… and ajax to server call. Next common ajax function call in blur event […]