라라벨 snake_case()

1 개요[ | ]

라라벨 snake_case()
$samples = ['foo_bar', 'Foo Bar', 'FooBar', 'fooBar', 'Foobar', 'foo bar', 'FOOBAR'];
foreach( $samples as $sample ) {
	echo $sample." → ".snake_case($sample) . PHP_EOL;
}
# foo_bar → foo_bar
# Foo Bar → foo_bar
# FooBar → foo_bar
# fooBar → foo_bar
# Foobar → foobar
# foo bar → foobar
# FOOBAR → f_o_o_b_a_r

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}