http://www.hirano-dept.com/blog/2011/01/iphone-uilabel.html
NSString *str = @"sample string";
CGSize size = [str
sizeWithFont:[UIFont boldSystemFontOfSize:13]
constrainedToSize:CGSizeMake(5…
要素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
この投稿へのコメント
コメントはまだありません。