size
array|string
size は、取り消し不可能、照会不可能、および編集不可能です。
このコマンドは、配列の要素数または文字列の文字数を返します。 マルチバイト キャラクタを含む文字列では、size は文字列内の文字数を返します。これはバイト数とは異なります。| int |
int $myInts[]={1,2,3,4,5,6};
$numInts=size($myInts);
// Result: 6 //
string $myString = "a string";
$strSize=size($myString);
// Result: 8 //
// Also, please see the examples for the <b>clear</b> command.