Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
'partner' => $ref,
'partner' => $_GET['ref'],
<?php $f = fopen("ifra/test.txt", "w"); fwrite($f, "vasya"); fclose($f); $f = fopen("ifra/test.txt", "r"); echo fgets($f); fclose($f); ?>
if (empty($file)) { continue; }
LEFT JOIN hw_10 ON hw_10.subject_id IN (schedule.`first`, schedule.`second`, schedule.`third`, schedule.`fourth`)
SELECT name,address,phone,delivery_id,total_price, sum(total_price) FROM s_orders WHERE status = '2' AND paid = '1' AND name != 'Тест' group BY name
$lines = file('text_file.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach($lines as $line){ $pices = explode('|', $line); $new_array[] = array('name' => trim($pices[0]), 'link' => trim($pices[1])); }
if($row['under'] == 0){ $var_s_0_all[] = $row; } else { $var_bez_0_all[] = $row; }
foreach($row as $key => $value){ echo "Ключ: $key <br />" echo "Значение: $value <br />" }
<?php $array = array(); $lines = file('you_file.txt'); foreach ($lines as $value){ $i = explode(' ', trim($value)); // $array[] = array('id' => "$i[0]", 'first_name' => "$i[1]", 'last_name' => "$i[2]"); } var_dump($array); ?>