Mecha CMS

Helper functions.

f2p

Convert file name to class property name.

2.2.0

Example:

echo f2p('foo');
echo f2p('.foo');
echo f2p('foo-bar');
echo f2p('foo_bar');
echo f2p('foo_-bar');

Result:

foo
__foo
fooBar
foo_bar
foo_Bar