今回は、iPhone,ipod,ipad に内蔵されている加速度センサーを使って、x,y,zの加速度を取得する方法について説明します。
加速度センサーとは、自由落下に対するデバイスの加速度を計測します。1の値はデバイスに1G の重力がかかっていることを示します(1G の重力は、デバイスが静止状態の時に感じる地球の重力)。加速度センサーはデバイスの加速度を X、Y、および Z の3軸方向で計測します。
…
$string = ‘Hello World!’;
if(stristr($string, ‘earth’) === FALSE) {
echo ‘”earth” not found in string’;
}
// 出力は “earth” not found in string となります
参照元:http://www.php.net/manual/ja/function.stristr.php
graffiti on the web
この投稿へのコメント
コメントはまだありません。