Continue Statement in PHP in Hindi - PHP Continue Statement in Hindi

 Continue Statement in PHP in Hindi - PHP Continue Statement in Hindi इस Article में हम PHP Continue Statement in Hindi के बारे में पूरी तरह से जानेगे।  



Continue Statement का Use भी Control Statement यानि Loops में किया जाता है।  इसके पहले article में हमने PHP Break Statement in Hindi की जानकारी share की थी।  Break और Continue दोनों Jump Statement के ही है।  इसलिए दोनों के बारे में जानना आवश्यक है। 

Continue Statement in PHP in Hindi

Continue Statement के द्वारा हम Loop के किसी एक Statement को Skip कर  सकते है।  जो आप नीचे Example में देख सकते है। 


<?php  
for ($x = 0; $x < 10; $x++) {
if ($x == 6) {
continue;
}
echo "The number is: $x <br>";
}
?>

Output


The number is: 0
The number is: 1
The number is: 2
The number is: 3
The number is: 4
The number is: 5
The number is: 7
The number is: 8
The number is: 9

यहाँ पे आप देख सकते है। x ==6 लगा हुआ है। इसलिए ये वाला Loop Skip है। बाकि सभी loop चल रहे है।

Comments

Popular posts from this blog

5 Ways to Use Technology to Protect Your Finances During Divorce

Florida Probate Court Information

Do I Need Gap Protection For My Car Loan