Код: Выделить всё
$recipe['ingredients'] = '100ml milk, 350ml double cream, 150ml water';
< /code>
Я пытаюсь разделить его, так что это выглядело следующим образом: < /p>
[list]
[*]100ml milk
[*]350ml double cream
[*]150ml water
[/list]
< /code>
Пока что у меня есть следующий код: < /p>
$ingredientsParts = explode(',', $row_rs_recipes['ingredients']);
$ingredients = array($ingredientsParts);
while (! $ingredients) {
echo" [*]$ingredients";
}
Подробнее здесь: https://stackoverflow.com/questions/919 ... -list-item
Мобильная версия