PHP: Prevent a function from returning value?

Posted by Industrial on Stack Overflow See other posts from Stack Overflow or by Industrial
Published on 2010-06-01T18:16:11Z Indexed on 2010/06/01 18:23 UTC
Read the original article Hit count: 127

Hi everybody,
How could I make sure that the startProcess(); function is being called, but without halting the execution for myFunction(). I'll guess that there's a way to call a function and prevent it from returning it's value to thereby accomplishing this?

Pseudo-code:

function myFunction() {

    startProcess();

    return $something;       
}

function startProcess() {
    sleep(5);
    // Do stuff that user doesn't should have to wait for.
}

© Stack Overflow or respective owner

Related posts about php

Related posts about php5