![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| 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] { | |||
| Advertisements |
| | #3 | ||
| _"^^"_ wrote: > Try Break; Yup... break; is there to stop execution of the current loop/function/switch/etc. If you need/want to get out of multiple levels (say you've got a while() loop, and you're stepping through something in a loop within the while()), you can specify a number corresponding to the level you wish to break out of. ie. break 2; will drop you out of the current loop, plus the one above. | |||
| Featured Websites | ||||
|
![]() |
| Tags: compare |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare prices | JS | Cheap Web Hosting Package | 7 | 05-31-2007 2:37 PM |
| Welcome compare-viagra To MK PitStop | RSS_Bot | Introduce yourself | 0 | 07-17-2006 11:56 AM |
| Featured Websites | ||||
|