平日詳細(php)


この文章は普段の細部の問題を記録し、いつでも更新するために使われています.
1.ddこのリンクは、ローカルQQチャットプログラムuinの後ろにチャットするオブジェクトを呼び出すことができます.
2.getで漢字に値を渡す場合、Googleブラウザでは文字化けしが発生しませんが、ieブラウザでは発生します.送信する値をurlencode()関数で符号化すると、ieブラウザのアドレスバーには符号化後の値が表示されますが、Googleブラウザのアドレスバーには漢字が表示されます
test
3.ページ出力時のフォーマット制御nl 2 br(htmlspecialchars(「string」)
4.
<?php 
print_r($_POST['arr']).'<br>';
echo $_POST['arr'][0];
?>
<form method="post" action="">
<input type="text" name="arr[]"/>
<input type="text" name="arr[]"/>
<input type="text" name="arr[]" />
<input type="submit"  />
</form> 
5.count()カッコには*または単一のフィールドしかなく、複数のフィールドはできません.
6.PHP strstr()関数
string strstr ( string $haystack , mixed $needle [, bool $before_needle = false ] ) Returns part of haystack string starting from and including the first occurrence of needle to the end of haystack. Note: This function is case-sensitive. For case-insensitive searches, use stristr().(大文字と小文字が敏感)Note:If you only want to determine if a particular needle occurs within haystack,use the faster and less memory intensive function strpos()instead.