<script type="text/javascript">
<!--
if(navigator.userAgent.indexOf("MSIE") > -1){ //Internet Explorer
document.write('<!-'+'-[if IE]>');
document.write('<input type="button" valu…
要素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
この投稿へのコメント
コメントはまだありません。