|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
How can I stop a function in PHP?
When comparing data I want to stop the function on a hit. Function compare($data) { For ($n=1; $n<=10000; $n++) { For ($m=1; $m<=10000; $m++) { If $data[$n]==data[$m] { |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Piet wrote:
> How can I stop a function in PHP? By calling return; function example() { return; // stop here echo "test"; // This is never executed } |
|
![]() |
| Outils de la discussion | |
|
|