php經典面試題

2021-06-09 18:46:42 字數 580 閱讀 1808

<?php

functiongbk_strrev($str);

if(ord($char)>127)elseelseif(ord($first_b)>192)elseelseelseif(ord($first_b>192))elseelseelsereturn$arr;

$arr=array(12,78,49,68,59,67,93,34,46,33);

var_dump(xuanze($arr));

functioninsertsort($arr)

$midindex=floor(($leftindex+$rightindex)/2);

$midvalue=$arr[$midindex];

if($midvalue>$num)elseif($midvalue<$num)else{

return$midindex;

$arr=array(3,5,7,8,9,23,26,36);

$leftindex=0;

$rightindex=count($arr);

var_dump(erfen($arr,36,$leftindex,$rightindex));

簡單的php面試題,PHP經典面試題彙總(二)

十一 如何進行防止sql注入?1 表單盡量用post提交,核心使用者驗證都用post,表單判斷使用get,因為get比post快 2 使用 server http referer 判斷提交表單的源頭是否是本機網域名稱 path server http referer arr parse url pa...

經典面試題

1.以下三條輸出語句分別輸出什麼?char str1 abc char str2 abc const char str3 abc const char str4 abc const char str5 abc const char str6 abc cout boolalpha str1 str2 ...

經典面試題

我的老同學現在富得流油。他開創了乙個軟體公司,開發了一系列軟體,生意越做越大。今天他來到這個城市後馬上打 給我。是我啊!聽出來了嗎?是這樣的,我到這兒的大學招畢業生,要在這兒呆上五天,咱哥們趁這個時間好好聚一聚。我做東!既然他要做東,我理所當然順水推舟。人家是老闆,不吃白不吃!我來到他下榻的賓館,看...