Jump to content

split value


Miko

Recommended Posts

u can use substr() function;

 

<?php
      echo substr ($var, 0 ,4);
?>

 

first parameter is for the word ur splitting, the second is the index to start from, the third is the index to stop at

 

go here for more info http://www.php.net/manual/en/function.substr.php

Link to comment
https://forums.phpfreaks.com/topic/165059-split-value/#findComment-870392
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.