@ 2014-06-17T22:10:59Z <?php
$test = 'جام جهانی
فیفا2014
فیفا
تیم ملی
برزیل
کامرون
مکزیک
کرواسی
اسپانیا
شیلی';
$arr = explode("\n",$test);
$C= new stdClass();
$C->AUTO_HASHTAG = $arr;
foreach($C->AUTO_HASHTAG as &$ht){
if(strpos($ht,'ا')!==false)
$C->AUTO_HASHTAG[] = str_replace('ا','آ',$ht);
if(strpos($ht,'آ')!==false)
$C->AUTO_HASHTAG[] = str_replace('آ','ا',$ht);
if(strpos($ht,' ')!==false){
$C->AUTO_HASHTAG[] = str_replace(' ','-',$ht);
$C->AUTO_HASHTAG[] = str_replace(' ','_',$ht);
}
}
var_export($C->AUTO_HASHTAG);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.2.18 , 8.3.5 - 8.3.6 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16777224 bytes) in /in/22tEK on line 21
Process exited with code 255 . Output for 8.2.11 - 8.2.17 , 8.3.0 - 8.3.4 Fatal error: Out of memory (allocated 27267072 bytes) (tried to allocate 8388616 bytes) in /in/22tEK on line 21
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Process exited with code 255 . Output for 7.0.0 - 7.0.33 , 7.1.0 , 7.1.2 - 7.1.33 , 7.2.0 - 7.2.3 , 7.2.6 , 7.2.9 - 7.2.26 , 7.3.0 - 7.3.13 , 7.4.0 - 7.4.1 , 8.1.28 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33554440 bytes) in /in/22tEK on line 21
Process exited with code 255 . Output for 8.1.24 - 8.1.27 Fatal error: Out of memory (allocated 31461376) (tried to allocate 16777224 bytes) in /in/22tEK on line 21
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Process exited with code 255 . Output for 5.6.14 , 5.6.27 , 5.6.31 , 7.1.1 , 7.2.4 - 7.2.5 , 7.2.7 - 7.2.8 Process exited with code 137 . Output for 5.4.0 - 5.4.9 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.13 , 5.6.15 - 5.6.26 , 5.6.28 - 5.6.30 , 5.6.32 - 5.6.40 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/22tEK on line 19
Process exited with code 255 . Output for 5.3.0 - 5.3.10 , 5.4.10 - 5.4.45 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/22tEK on line 19
Process exited with code 255 . Output for 5.3.11 - 5.3.29 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/22tEK on line 19
Process exited with code 255 . Output for 5.2.6 - 5.2.17 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/22tEK on line 21
Process exited with code 255 . Output for 5.2.2 - 5.2.5 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 18 bytes) in /in/22tEK on line 21
Process exited with code 255 . Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.1 array (
0 => 'جام جهانی',
1 => 'فیفا2014',
2 => 'فیفا',
3 => 'تیم ملی',
4 => 'برزیل',
5 => 'کامرون',
6 => 'مکزیک',
7 => 'کرواسی',
8 => 'اسپانیا',
9 => 'شیلی',
10 => 'جآم جهآنی',
11 => 'جام-جهانی',
12 => 'جام_جهانی',
13 => 'فیفآ2014',
14 => 'فیفآ',
15 => 'تیم-ملی',
16 => 'تیم_ملی',
17 => 'کآمرون',
18 => 'کروآسی',
19 => 'آسپآنیآ',
) Output for 4.4.2 - 4.4.9 Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /in/22tEK on line 17
Process exited with code 255 . Output for 4.3.0 - 4.3.1 , 4.3.5 - 4.3.11 , 4.4.0 - 4.4.1 Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /in/22tEK on line 17
Process exited with code 255 . Output for 4.3.2 - 4.3.4 Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /in/22tEK on line 17
Process exited with code 255 . preferences:dark mode live preview
227.17 ms | 401 KiB | 345 Q