Jump to content

implode with values instead of key's


Ninjakreborn

Recommended Posts

[code]<?php
implode(", ", $_SESSION['temp']['actiontaken'])
?>[/code]
This will take an array and put it in a comma seperated list for display, but it's taking the key naturally, I need to find an alternative so I can get the "values" themselves in a comma seperated list.  Implode is for the key's in an array, what is for the values in an array.
Link to comment
https://forums.phpfreaks.com/topic/27883-implode-with-values-instead-of-keys/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.