PHP code example of ddvphp / ddv-util

1. Go to this page and download the library: Download ddvphp/ddv-util library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ddvphp / ddv-util example snippets



$a = \DdvPhp\DdvUtil\String\Conversion::humpToUnderline('userLoginTest');
var_dump($a);



$a = \DdvPhp\DdvUtil\String\Conversion::humpToUnderlineByArray([
	'userLoginTest'=>'11',
	'userLoginTest1'=>'12'
]);
var_dump($a);



$a = \DdvPhp\DdvUtil\String\Conversion::underlineToHump('user_login_test');
var_dump($a);



$a = \DdvPhp\DdvUtil\String\Conversion::middleLineToHump('user-login-test');
var_dump($a);