AgerNic.com/ro
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
Tutorial
Definiție și utilizare.

Funcția explode () sparge un șir într-un tablou in grupuri de caractere.
Notă: Parametrul "separator" nu poate fi un șir gol.
Functia explode se foloseste pentru a sparge un sir in grupuri de caractere.
Aceasta functie este foarte utila atunci cand lucram cu fisiere sub forma de baza de date.
<?php 
$sir_caractere = 'Doresc sa invat PHP utilizand platforma agernic.com/ro';
$array = explode(' ', $sir_caractere);
echo '<pre>'.print_r($array,true).'</pre>'; // folosim pre pentru o afisare mai buna a array-ului
?>
Tags: functia explode(), explode, PHP7

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.