Cut string in php



<?php

// Example 1

$pizza  "piece1 piece2 piece3 piece4 piece5 piece6";

$pieces explode(" "$pizza);

echo 
$pieces[0]; // piece1

echo $pieces[1]; // piece2

?>


Kyle.

Advertisements
Categories: Prestashop | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: