PHP Callback Functions | Callback in PHP | How to use callback function in PHP

Pubblicato il: 03 novembre 2021
sul canale di: Programming with Sri
2,952
25

php callback | php code example tutorial callback function| what is php callback function | php basic | php beginner tutorial | php code example

play list :    • PHP Class Objects | PHP Beginner Tuto...  

What is PHP callback functions?
To use a function as a callback function, pass a string containing the name of the function as the argument of another function.

eg:
function getStrLen($item){
return strlen($item);
}

$itemArray = [ "Phone","Keyboard","Pen"];

$lenghts = array_map("getStrLen",$itemArray);

print_r($lenghts);


In questa pagina del sito puoi guardare il video online PHP Callback Functions | Callback in PHP | How to use callback function in PHP della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Programming with Sri 03 novembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,952 volte e gli è piaciuto 25 spettatori. Buona visione!