我是靠谱客的博主 动听歌曲,这篇文章主要介绍php (strpos,php – 在strpos()的字符串中使用正则表达式,现在分享给大家,希望可以做个参考。

News Update

Title: Article Title

Tags: tag1 tag2

Categories: Article Category, 2nd Article Category

Snippet:

Article snippet.

Message: Article Message. Images. More text,

more text. Lorem impsum dolor sit amet.

//These functions searches the open e-mail for the the prefix defining strings.

//Need a function to search after the space after the strings because the subject, categories, snippet, tags and message are constant-changing.

$subject = strpos($open_email_msg, "Title:"); //Searches the open e-mail for the string "Title"

$subject = str_replace("Title: ", "" ,$subject);

$categories = strpos($open_email_msg, "Categories:"); //Searches the open e-mail for the string "Categories"

$snippet = strpos($open_email_msg,"Snippet"); //Searches the open e-mail for the string "Snippet"

$content = strpos($open_email_msg, "Message"); //Searches the open-email for the string "Message"

$tags = str_replace(' ',',',$subject); //DDIE

$uri = str_replace(' ','-',$subject); //DDIE

$when = strtotime("now"); //date article was posted

?>

最后

以上就是动听歌曲最近收集整理的关于php (strpos,php – 在strpos()的字符串中使用正则表达式的全部内容,更多相关php内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部