how to pass a value and then split it and it should display in string format

What is the type of the value? What kind of split? Please rephrase your question.

Also what code have you attempted this with?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.