Удаление переводов строк (php)

    Date: 05/25/06 (Code WTF)    Keywords: no keywords

    Студентка выдала:

    $str = $_POST['somefield'];
    $arr = explode("\n", $str);
    $newstr = '';
    for($i=0;$i $newstr = $newstr.$arr[i];

    Source: http://community.livejournal.com/code_wtf/39570.html

« SQL || WTL »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home