In this way you are wrapping the entire set in one span, you have to add the closing/opening tag to the implode:
$value = "<span>".implode('</span>,<span>', $values)."</span>";
More Related Contents:
- Getting links from db and displaying them in another div [closed]
- How to refresh webpage after submitting contact from in HTML?
- HTML Form/PHP connected but MySQL is empty
- php variable changes when clicked on html link [closed]
- Upvote / Downvote
- Thank you for helping [closed]
- Auto responder mail reverts fill all fields when i have filled them
- Login form using HTML
- Return single column from a multi-dimensional array
- Print string with a php variable in it
- How to create a HTML Table from a PHP array?
- Sending HTML email from PHP
- How to insert HTML to PHP DOMNode?
- Implode a column of values from a two dimensional array [duplicate]
- PHP header() redirect with POST variables [duplicate]
- Using PHP substr() and strip_tags() while retaining formatting and without breaking HTML
- Convert PDF to HTML [closed]
- How to get int instead string from form?
- How to display string that contains HTML in twig template?
- Create blog post links similar to a folder structure
- mysqli_query() expects at least 2 parameters, 1 given in? [duplicate]
- Echo menu tree with recursive function
- How to pass multiple variables across multiple pages?
- HREF=”” automatically adds to current page URL (in PHP). Can’t figure it out
- How do I keep whitespace formatting using PHP/HTML?
- utf-8 special characters not displaying [duplicate]
- Turkish characters are not displayed correctly [duplicate]
- How to handle newlines in Javascript? (from PHP)
- Getting All $_POST From Multiple Select Value
- save html-formatted text to database