回調(diào)函數(shù)是一種類型,準確地講應該是,匿名函數(shù)經(jīng)常用作函數(shù)的回調(diào)函數(shù)類型的參數(shù)。
2018-10-07
更正一下
<?php
/**
* Created by PhpStorm.
* User: juyaobin
* Date: 2018/8/7
* Time: 上午9:55
*/
//4.php
function HouZhuiMing($b='4.php'){
$a = strrchr($b,'.' );
return $a;
}
var_dump( HouZhuiMing('4.txt.html'));
<?php
/**
* Created by PhpStorm.
* User: juyaobin
* Date: 2018/8/7
* Time: 上午9:55
*/
//4.php
function HouZhuiMing($b='4.php'){
$a = strrchr($b,'.' );
return $a;
}
var_dump( HouZhuiMing('4.txt.html'));
2018-08-07
作業(yè)
<?php
/**
* Created by PhpStorm.
* User: juyaobin
* Date: 2018/8/7
* Time: 上午9:55
*/
//4.php
function HouZhuiMing($b='4.php'){
$a = strstr($b,'.');
return $a;
}
var_dump( HouZhuiMing('4.txt'));
<?php
/**
* Created by PhpStorm.
* User: juyaobin
* Date: 2018/8/7
* Time: 上午9:55
*/
//4.php
function HouZhuiMing($b='4.php'){
$a = strstr($b,'.');
return $a;
}
var_dump( HouZhuiMing('4.txt'));
2018-08-07
最新回答 / imSz
就類似a拼接b,然后就數(shù)據(jù)就變成了ab代碼里面因為<table>之類的標簽是成對的,所以要拼接成<table>循環(huán)的內(nèi)容</table>
2018-07-21
function getExt($filename){
$arr = explode('.',$filename);
$newArr = array_reverse($arr);
echo $newArr[0];
}
getExt($filename='1.txt.html');
課后作業(yè)
$arr = explode('.',$filename);
$newArr = array_reverse($arr);
echo $newArr[0];
}
getExt($filename='1.txt.html');
課后作業(yè)
2018-06-12
function getExtensionName($fileName){
preg_match('/\.(.+)/i',$fileName,$matches);
return $matches[1];
}
echo getExtensionName('index.txt');
preg_match('/\.(.+)/i',$fileName,$matches);
return $matches[1];
}
echo getExtensionName('index.txt');
2018-05-06
<?php
function getExt($filename) {
$ext = substr(strstr($filename, '.'), 1);
return $ext;
}
echo getExt('adfhadkghaf.ppp');
function getExt($filename) {
$ext = substr(strstr($filename, '.'), 1);
return $ext;
}
echo getExt('adfhadkghaf.ppp');
2018-05-01