php call function when connected to file
421
I've try to call a function in php. I've connected with an ajax call to the file (works fine). My question in now how can I call the function?
if (isset($_POST['callFunc1']) && !empty($_POST['callFunc1'])) {
echo 'get the echo';
function generateWigaNews()
{
echo 'don't get the echo';
}
}
Answer
Solution: