Need guides on learning how for loops work and when I should be using them… is the main reason why im not learning php.
here's what I got so far:
<?php
$message = "The raids will never stop";
for (i < 5) {
$characTer = substr($message,i,1);
if(characTer == '\0') break;
else {
echo $characTer;
}
}
return 9;
?>
Well, this is not when you should be using them. Here:
<?php $message = "The raids will never stop"; echo($message); ?>
Or better yet:
<?php echo("The raids will never stop"); ?>
Adolf Hitler - go to this post
Well, this is not when you should be using them. Here:
<?php $message = "The raids will never stop"; echo($message); ?>Or better yet:
<?php echo("The raids will never stop"); ?>
No.
what a capitalist language. dollar signs EVERYWHERE!!!!
your for loop is bad. what is i? need to define it.
PHP is not C where every char[] is null terminated.
Copyright © MMXXIV Esoteric Chat. Some rights reserved. Pursuant to 47 U.S.C. § 230: All posts on this site are the sole responsibility of their posters.
6,142 posts - 1,371 conversations - 1 member online