Работа с 2гб+ файлами в PHP Sphinx UpdateAttribute 8kb limit?
Feb 12
<?php
$key = explode(' ', 'testword');
foreach($key as &$v) $v = trim($v);

foreach(array('store', 'brand') as $v){
    /*.......*/
}
print_r($key);
?>

Как может показаться в массиве $key должно быть ‘testword’ :) но это не так. Проблему решает только unset($v) после первого foreach’a.

No related posts.

3 Responses to “Бугагашечка от PHP для невнимательных”

  1. Anarki Says:

    Там что-то с ссылками не то.
    А зачем это?

    $key = explode(' ', 'testword');

    :)

  2. admin Says:

    експлод для получения слов из строки :) ‘testword’ чисто для примера, можно сделать и ‘test word’ ;)

  3. Kul Says:

    ; )

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a