Changes between Version 15 and Version 16 of EC-CUBE標準規約


Ignore:
Timestamp:
2011/01/24 09:51:10 (10 years ago)
Author:
Seasoft
Comment:

不適切なサンプルコードを修正

Legend:

Unmodified
Added
Removed
Modified
  • EC-CUBE標準規約

    v15 v16  
    120120<?php 
    121121foreach ($var as $key => $val) { 
    122     echo $key . ":" . $val . "\n"; 
     122    echo $key . ':' . $val . "\n"; 
    123123} 
    124124?> 
     
    151151switch ($var) { 
    152152    case VAR_ONE: 
    153         echo "one"; 
     153        echo 'one'; 
    154154        break; 
    155155 
    156156    case VAR_TWO: 
    157         echo "two"; 
     157        echo 'two'; 
    158158        break; 
    159159 
    160160    default: 
    161         echo "default"; 
     161        echo 'default'; 
    162162        break; 
    163163} 
     
    172172#!php 
    173173<?php 
    174 $sql = "SELECT name, age, birthday, zipcode, address, comment " 
    175      . "  FROM user_information " 
    176      . " WHERE user_id = ? " 
    177      . "   AND is_delete = 0 "; 
     174$sql = 'SELECT name, age, birthday, zipcode, address, comment ' 
     175     . '  FROM user_information ' 
     176     . ' WHERE user_id = ? ' 
     177     . '   AND is_delete = 0 '; 
    178178?> 
    179179 
     
    266266 * @return string 返り値の説明 
    267267 */ 
    268 function process($foo, $bar = "") { 
     268function process($foo, $bar = '') { 
    269269    // some process... 
    270     return "string value";     
     270    return 'string value';     
    271271} 
    272272?>