php array map function

array_map is a powerful PHP function that applies a given callback function…

Continue reading →

The keyword use in php anonymous function

In PHP, anonymous functions are also known as closures. They are functions without a specific name…

Continue reading →

array filter function in php

In PHP, the array_filter() function is used to filter elements of an…

Continue reading →

Generate an HTML table from a multidimensional PHP array with keys and values

In this example, we have a multidimensional array with three rows and three columns. We use a foreach…

Continue reading →

PHP PDO (PHP Data Objects) to connect to a MySQL database and perform a query

How to use PHP PDO (PHP Data Objects) to connect to a MySQL database and perform a query

Continue reading →

Use onoffswitch-checkbox to update table field in php

How we use onoffswitch-checkbox ,  it's attribute data-id and change event  with ajax  to set a field…

Continue reading →