Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
php get string : get_area(content, start, end)
SUBMITTED BY:
sukamanahh
DATE:
Jan. 1, 2016, 2:21 a.m.
FORMAT:
Text only
SIZE:
261 Bytes
Raw
Download
Tweet
HITS:
378
Go to comments
Report
<?php
function get_area($content, $start, $end){
$ex = explode($start, $content);
$ex2 = explode($end, $ex[1]);
return $ex2[0];
}
$string = "just test 1";
//get and print 'test' string
$output = get_area($string, "just", "1");
print $output;
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus