<?php
$t = '#Новости_0629 #Мариуполь #митинг #война Подробнее: http://www.0629.com.ua/news/488931';
$t_full = "В 14.00 возле горсовета собрались сотни людей, которые выступают за единую Украину и против ввода российских вой...".$t;
$description_text_lenght = 245 - strlen($t);
$full_text = mb_substr($item['stxt'], 0, $description_text_lenght) . $other_text;
var_dump(
array($full_text,mb_substr($t, 0,1,'UTF-8'),iconv_strlen($t,'UTF-8'),strlen($t))
);
Warning: Undefined variable $item in /in/iiu05 on line 7
Warning: Trying to access array offset on null in /in/iiu05 on line 7
Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/iiu05 on line 7
Warning: Undefined variable $other_text in /in/iiu05 on line 7
array(4) {
[0]=>
string(0) ""
[1]=>
string(1) "#"
[2]=>
int(85)
[3]=>
int(121)
}
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: Undefined variable $item in /in/iiu05 on line 7
Warning: Trying to access array offset on value of type null in /in/iiu05 on line 7
Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/iiu05 on line 7
Warning: Undefined variable $other_text in /in/iiu05 on line 7
array(4) {
[0]=>
string(0) ""
[1]=>
string(1) "#"
[2]=>
int(85)
[3]=>
int(121)
}
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
Warning: Undefined variable $item in /in/iiu05 on line 7
Warning: Trying to access array offset on value of type null in /in/iiu05 on line 7
Warning: Undefined variable $other_text in /in/iiu05 on line 7
array(4) {
[0]=>
string(0) ""
[1]=>
string(1) "#"
[2]=>
int(85)
[3]=>
int(121)
}
Output for 8.0.13
Warning: Undefined variable $item in /in/iiu05 on line 7
Warning: Trying to access array offset on value of type null in /in/iiu05 on line 7
Warning: Undefined variable $other_text in /in/iiu05 on line 7
Fatal error: Uncaught Error: Call to undefined function iconv_strlen() in /in/iiu05:10
Stack trace:
#0 {main}
thrown in /in/iiu05 on line 10
Process exited with code 255.
Output for 7.4.33
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Trying to access array offset on value of type null in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
Fatal error: Uncaught Error: Call to undefined function iconv_strlen() in /in/iiu05:10
Stack trace:
#0 {main}
thrown in /in/iiu05 on line 10
Process exited with code 255.
Output for 7.4.0 - 7.4.32
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Trying to access array offset on value of type null in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
array(4) {
[0]=>
string(0) ""
[1]=>
string(1) "#"
[2]=>
int(85)
[3]=>
int(121)
}
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Call to undefined function iconv_strlen() in /in/iiu05:10
Stack trace:
#0 {main}
thrown in /in/iiu05 on line 10
Process exited with code 255.
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
array(4) {
[0]=>
string(0) ""
[1]=>
string(1) "#"
[2]=>
int(85)
[3]=>
int(121)
}
Output for 7.0.6
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
Fatal error: Uncaught Error: Call to undefined function iconv_strlen() in /in/iiu05:10
Stack trace:
#0 {main}
thrown in /in/iiu05 on line 10
Process exited with code 255.
Output for 5.5.35, 5.6.21
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
Fatal error: Call to undefined function iconv_strlen() in /in/iiu05 on line 10
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
array(4) {
[0]=>
string(0) ""
[1]=>
string(1) "#"
[2]=>
int(85)
[3]=>
int(121)
}
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
Fatal error: Call to undefined function: iconv_strlen() in /in/iiu05 on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
Fatal error: Call to undefined function: iconv_strlen() in /in/iiu05 on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: item in /in/iiu05 on line 7
Notice: Undefined variable: other_text in /in/iiu05 on line 7
Fatal error: Call to undefined function: iconv_strlen() in /in/iiu05 on line 10