自带的
看不出看实际已经生效了
1. 用 cd ~ 命令进入用户目录
ls 看看有没有bin 目录
有就 cd进去 vim .bash_profile 创建这个文件
没有就 mkdir bin 接着 vim .bash_profile。
最后在这个文件后面 加上
export PATH="~/bin:$PATH"
最后 :wq 退出保存。
2.再 cd ~ 命令 输入下面命令:
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
/官方网站教程:https://www.sublimetext.com/docs/3/osx_command_line.html/
sublime text
好像没啥问题吧
<?php
$row["name"] = "I am abc,My name is abc,my home is abc!Love me ,hahaha";
$key = "abc";
$row["name"]=str_replace($key, "<span style='color:red;'>".$key."</span>", $row["name"]);
echo $row["name"];