How to split a word or sentence delimited with slashes, commas or hyphens

This Tutorial Has Been Viewed 1,357 Times.

How to split a word or sentence delimited with slashes,commas, dots, or hyphens

< ?php
// Delimiters may be slash, comma, or hyphen
$data = “Welcome to, the world of php”;
list($first, $second) = split(‘[/,-]‘, $data);
echo “First Letter: $first; Second Splitted letter: $second
\n”;
?>

VN:F [1.9.13_1145]
Rating: 8.0/10 (3 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

How to split a word or sentence delimited with slashes, commas or hyphens, 8.0 out of 10 based on 3 ratings

Incoming search terms:





You will also be interested in ,

Tags: ,

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in PHP, scripts (97 of 149 articles)