This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Textarea to string in PHP

March 25, 2015 11:39am

Subscribe [1]
  • #1 / Mar 25, 2015 11:39am

    How do I convert a textarea field in EE to strings so that I may use PHP string functions?  I tried exploding into an array.  But that doesnt work.

    $words=explode(’ ‘,’{description}’);
    echo $word[0];

    {description} is a text area variable.

    if I use a string variable, for example, ‘{title}’ it works just fine

ExpressionEngine News

#eecms, #events, #releases