PHPのコロン構文で下記のNoticeが表示されるのですがどうやって消したらよいのでしょうか。
Notice: Use of undefined constant - assumed ' ' in H:\xampp\test_php.php on line 16
3足
Notice: Use of undefined constant - assumed ' ' in H:\xampp\test_php.php on line 16
2
Notice: Use of undefined constant - assumed ' ' in H:\xampp\test_php.php on line 16
1
Notice: Use of undefined constant - assumed ' ' in H:\xampp\test_php.php on line 18
<?php //PHP5.4以降 $cupdoard =[ "pumps" =>'3足', "boot" =>'2', "sports_shoes" =>'1', ]; ?> <!DOCTYPE html> <html lang="ja"> <body> <ul> <?php foreach($cupdoard as $key => $value) : ?> <li><?php echo $value; ?></li> <?php endforeach; ?> </ul> </body> </html>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/12/19 16:06