Login
·
Signup
Home
»
XtGem
»
Coding help
»
need hlp
» View post
Waplocus
Graham
Please sir how can i print the path name before(folder name) the index e.g in "/Education/index" print "Education" e.g in /Education/JAMB/index print "JAMB"
<<!--parser:xtscript--> var $spc=call chr $val=32 var $path=<xt:url type="path"> var $pos = call strrpos $haystack=$path; $needle=/ var $path = call substr $val=$path; $start=0;$length=$pos var $pos = call strrpos $haystack=$path; $needle=/ var $name = call substr $val=$path; $start=($pos+1) var $name = call str_replace $subject=$name; $search=_ ; $replace=$spc print $name <!--/parser:xtscript-->
...THANKS.
#
2017-11-05 02:54 (edited 2017-11-05 13:20 by
Graham
) ·
(0)
Home
»
XtGem
»
Coding help
»
need hlp
» View post
Online: Guests: 1
Log in