如何隐藏for循环中的值

时间:2015-12-04 05:46:32

标签: php html

实际上我尝试了一个概念forloop我想隐藏2个值我不知道怎么做那个

<?php

  for($i=0;$i<=20;$i++){
   echo $i;
  }
//if $i=10 means hide and $i=15 means hide this value remaining value i want to show how to do

2 个答案:

答案 0 :(得分:0)

为什么给予&amp;&amp ;.删除OR。

if($imageFileType != "jpg" || $imageFileType != "png" || $imageFileType != "jpeg" || $imageFileType != "gif" ) 
{

答案 1 :(得分:0)

编辑行并运行:

if (($imageFileType!= "jpg") && ($imageFileType != "jpeg") && ($imageFileType != "JPG") && ($imageFileType != "gif") && ($imageFileType != "png"))