NSAssert
指定した条件が間違っていればlogに文字列を書き込む
NSAssert2
指定した条件が間違っていればlogに引数2つの文字列を書き込む
http://www.oomori.com/cocoafw/Foundation/NSAssert2/NSAssert2.html free raspberry ketones…
要素Aが配列Bの中に存在するか調べるには in_array を使う。
以下の例では、配列Bの中に要素Aが存在するので「Got elementA」が出力されます。
$arrayB = array(“elementA”, “NT”, “Irix”, “Linux”);
if (in_array(“elementA”, $arrayB)) {
echo “Got elementA”;
}
graffiti on the web
この投稿へのコメント
コメントはまだありません。