How to call a function asynchronously in PHP?

PHP how to use echo and then call a function?

  • How to make an echo to call a function example : <?php ob_start(); session_start(); $applications=getApplication($_SESSION… $count=mysql_numrows($applications); if($count==0) { echo "You dont have any applications submited"; } else { for($index=0;$index<$count;$index++) { $appName=mysql_result($applications,… //the application name $appStatus=mysql_result($application… $appDate=mysql_result($applications,… echo nl2br("\t $appName \t $appStatus \t $appDate \r\n"); //i want this echo to call a function getDiscussion with passing parameter the $appName } } ?> if cant, can we do like submit form in echo? or any other ways? please anyone help me, thanks

  • Answer:

    If I understood your problem correctly, you need to do it the same way you used nl2br in echo statement. So, you have to do echo getDiscussion($appName); and getDiscussion returns some thing, it will be printed.

Alvin at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.