$pos = ($i == 0 ) ? 'first': (($i == count($this->children[$pid])-1) ? 'last' :''); which is printing text first, i need to add a digit after the word first, like first1 first2 and so on.. Please give me the the code. i wana put something after 'first-Here' $pos is under a function. Thanks.
$pos = ($i == 0 ) ? 'first'."Just add whatever you want here, $variables etc": (($i == count($this->children[$pid])-1) ? 'last' :''); is that what you mean?
emed thanks so much , done, I think i missed the dot (.) to concatenate two strings. i was not coding last few moths ...just forgetting common things .. thanks again, Rahman