SeqManager/ReadMe.txt
think/Apps/Home/Controller/WeiboController.class.php
echo "# think" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:DawnEve/think.git
git push -u origin master
git remote add origin [email protected]:DawnEve/think.git
git push -u origin master
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
/**
* strstr — 查找字符串的首次出现
*/
$email='[email protected]';
echo strstr($email,'@'),'<hr>'; // @bbb.com
echo strstr($email,'@',true); // @aaa
/**
* strpos — 查找字符串首次出现的位置
*/
$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
echo $pos;//0
//实例2
$mystring = 'abc';
$findme2 = 'd';
$pos2 = strpos($mystring, $findme2);
var_dump($pos2);//bool(false)