删除twitter文本标题中的最后一个Hashtag

时间:2017-04-25 16:46:50

标签: php twitter

我想在我的公共帐户获取的twitt中获取最后一个标记,

对象看起来像

OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + 
roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height 
<= m.rows) in cv::Mat::Mat, file C:\builds\master_PackSlave-win32-vc12-
shared\opencv\modules\core\src\matrix.cpp, line 495

我想从 Array ( [0] => stdClass Object ( [created_at] => Tue Apr 25 16:04:57 +0000 2017 [id] => 856901856584454144 [id_str] => 856901856584454144 [text] => مقتل مسؤول عن التفخيخ في فتح الشام بجرد #عرسال `https://t . co/nLuASJDXgN` #لبنان `https://t . co /oMCgiTER0A` [truncated] => [entities] => stdClass Object ( [hashtags] => Array ( [0] => stdClass Object ( [text] => عرسال [indices] => Array ( [0] => 40 [1] => 46 ) ) [1] => stdClass Object ( [text] => لبنان [indices] => Array ( [0] => 71 [1] => 77 ) ) ) [symbols] => Array ( ) 属性中移除#hashtag,如果它存在于text的末尾,并在一个变量中准备该字符串。 记住任何其他标记应保持原样。有人对此有所了解吗?

0 个答案:

没有答案