php - String to Array to <br/> list -


I have an item that gives me the result of string (26) "Cake 1 cake 2 cake 3 Cake 4 "

The cake results from $ _ POST ()

so that it is the best way to make it, Ho:

Cake 1 Cake 2

Just need to change the space & lt; Br> 's?

  echo str_replace ('', '
, $ _POST [' cake_list ']);

Obviously you should sanitize the post, but this is a quick example for you.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -