help with for loop? php - Esoteric Chat https://esoteric.chat/9611/help-with-for-loop-php/ is totally not admin posting, to make fake activity Sun, 08 Sep 2024 06:19:44 +0000 eso justin https://esoteric.chat/post/42413/ <p>what a capitalist language. dollar signs EVERYWHERE!!!!</p><p>your for loop is bad. what is i? need to define it.</p><p>PHP is not C where every char[] is null terminated.</p> Wed, 21 Aug 2024 17:42:27 +0000 https://esoteric.chat/post/42413/ Recursivemin https://esoteric.chat/post/42403/ <blockquote><p><cite>Adolf Hitler - <a href='https://esoteric.chat/post/42400/' class='postLink'>go to this post</a></cite></p><p>Well, this is not when you should be using them. Here:</p><pre>&lt;?php $message = &quot;The raids will never stop&quot;; echo($message); ?&gt;</pre><p>Or better yet:</p><pre>&lt;?php echo(&quot;The raids will never stop&quot;); ?&gt;</pre></blockquote><p>No.</p> Wed, 21 Aug 2024 03:20:01 +0000 https://esoteric.chat/post/42403/ Adolf Hitler https://esoteric.chat/post/42400/ <p>Well, this is not when you should be using them. Here:</p><pre>&lt;?php $message = &quot;The raids will never stop&quot;; echo($message); ?&gt;</pre><p>Or better yet:</p><pre>&lt;?php echo(&quot;The raids will never stop&quot;); ?&gt;</pre> Wed, 21 Aug 2024 02:50:58 +0000 https://esoteric.chat/post/42400/ Recursivemin https://esoteric.chat/post/42399/ <p>here&#39;s what I got so far:</p><p>&lt;?php</p><p>$message = &quot;The raids will never stop&quot;;</p><p>for (i &lt; 5) {<br/>$characTer = substr($message,i,1);<br/>if(characTer == &#39;&#92;0&#39;) break;<br/>else {<br/>echo $characTer;<br/>}<br/>}</p><p>return 9;<br/>?&gt;</p> Wed, 21 Aug 2024 02:37:16 +0000 https://esoteric.chat/post/42399/ Recursivemin https://esoteric.chat/post/42398/ <p>Need guides on learning how for loops work and when I should be using them… is the main reason why im not learning php.</p> Wed, 21 Aug 2024 02:34:26 +0000 https://esoteric.chat/post/42398/