Предупреждение об использовании неопределенной константы. это приведет к ошибке в будущей версии phpPhp

Кемеровские программисты php общаются здесь
Anonymous
Предупреждение об использовании неопределенной константы. это приведет к ошибке в будущей версии php

Сообщение Anonymous »


This should be enough for someone to correct my issue - I'm very much a newbie at this.

It's a short bit of code to strip spaces from the ends of strings submitted in forms.

The warning message is saying "Use of undefined constant mystriptag - assumed 'mystriptag' (this will throw an error..."

How should I change this?
function mystriptag($item) { $item = strip_tags($item); } array_walk($_POST, mystriptag); function t_area($str){ $order = array("\r\n", "\n", "\r"); $replace = ', '; $newstr = str_replace($order, $replace, $str); return $newstr; }

Источник: https://stackoverflow.com/questions/592 ... -version-o

Вернуться в «Php»