Function help

I am using korn shell.
When i use the following syntax i get error:

#!/usr/bin/ksh
funtion ABC {
echo hello world
}
###MAIN##
ABC

ERROR:
ABC not found.

The below code runs fine:

#!/usr/bin/ksh
ABC () {
echo hello world
}
###MAIN##
ABC

The syntax for korn is

function NAME { statements }

Please help why this is not working.

Should work.

$ cat lava
#!/bin/ksh

function ABC {
echo "hello world"
}

ABC
$ ./lava
hello world
$

What platform you on?
What ksh ver?

Spotted it! you have

funtion ABC

instead of

function ABC

thank you lavascript