prog.c:1:1: error: expected identifier or '('
<?php
^
prog.c:4:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
$z = str_split($l);
^
prog.c:4:6: warning: implicit declaration of function 'str_split' is invalid in C99 [-Wimplicit-function-declaration]
$z = str_split($l);
^
prog.c:4:16: error: use of undeclared identifier '$l'
$z = str_split($l);
^
prog.c:5:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
$x = array();
^
prog.c:5:6: warning: implicit declaration of function 'array' is invalid in C99 [-Wimplicit-function-declaration]
$x = array();
^
prog.c:5:6: error: initializer element is not a compile-time constant
$x = array();
^~~~~~~
prog.c:6:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
$j = 0;
^
prog.c:7:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
$k = 0;
^
prog.c:8:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
$za= strlen($l);
^
prog.c:8:6: warning: implicitly declaring library function 'strlen' with type 'unsigned int (const char *)'
$za= strlen($l);
^
prog.c:8:6: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
prog.c:8:13: error: use of undeclared identifier '$l'
$za= strlen($l);
^
prog.c:9:1: error: expected identifier or '('
for ($i=0;$i<$za;$i++) {
^
prog.c:45:1: error: unknown type name 'echo'
echo "no ktp $l<br/>";
^
prog.c:45:6: error: expected identifier or '('
echo "no ktp $l<br/>";
^
prog.c:46:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
$d= implode($x);
^
prog.c:46:5: warning: implicit declaration of function 'implode' is invalid in C99 [-Wimplicit-function-declaration]
$d= implode($x);
^
prog.c:46:5: error: initializer element is not a compile-time constant
$d= implode($x);
^~~~~~~~~~~
prog.c:47:1: error: unknown type name 'echo'
echo "Hasil $d";
^
prog.c:47:6: error: expected identifier or '('
echo "Hasil $d";
^
prog.c:48:1: error: expected identifier or '('
?>
^
10 warnings and 11 errors generated.