Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($arrayData['messages'] as $item)
- {
- if (preg_match('#^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$#i', $item['content']))
- {
- $values[] = [date('Y-m-d H:i:s', $item['timestamp_ms'] / 1000), $item['sender_name'], $item['content'], isset($item['share']) ? $item['share']['link'] : null];
- }
- }
Add Comment
Please, Sign In to add comment