if(empty($hoge)){

nanikasyori A;

}else{

nanikasyori B;

}

$hogeにfalseが入っているときにもemptyとしてnanikasyori Aが実行されてしまう。

ツイートツイート

Related posts:

  1. PHPでOOP
  2. XMLをパースしてRSSを表示!
  3. MySQL的なメモ
  4. internal_encodingの謎
  5. 今日はじめて知ったPHPのMySQLな関数

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 LEGGODT.COM Suffusion theme by Sayontan Sinha