2016-09-21 21 views

回答

0

你將不得不使用在每個參數的一些文字處理功能。也就是說,如果$name是包含逗號分隔的數據參數,然後

<?xdofx:Instr($name,',',1)?> will give you the position of the comma in the text. 

然後<?xdofx:substr($name,1, Instr($name,',',1)-1)?>將逗號之前返回文本。

而且。 <?xdofx:substr($name,Instr($name,',',1)+1, length($name))?>將在逗號後返回文字

first,last 
6 
first 
last