explode functions

explode — Splits a string using a separator

  •  
<?php
// Пример 1
$str = 'one|two|three|four';

$pieces = explode("|", $str);
echo $pieces[0]; // piece 1
echo $pieces[1]; // piece 2
echo $pieces[2]; //piece 2


?>

Check Also

How to Create a Crypto Telegram Bot (Simple Guide)

How to Create a Crypto Telegram Bot

Telegram bot for tracking exchange rates and crypto data ➜ [ᴠɪᴘ] ᴅᴏᴡɴʟᴏᴀᴅ ᴅᴏᴡɴʟᴏᴀᴅ ɪs ᴀᴠᴀɪʟᴀʙʟᴇ …

Leave a Reply

Your email address will not be published. Required fields are marked *