PHP progress

Learning PHP at Codecademy Topics String and variables - Done Number - Done Functions - Done Intro to Built-in PHP functions - Done find variable types gettype(); var_dump(); string functions strrev();strtolower(); strtoupper(); str_repeat(); substring substr_count(); number function abs(); round(); generating random numbers rand(); getrandmax(); ceil(); documentation str_pad(); check value in array in_array("valuetocheck", $array) Ordered Arrays can be integer or string or any data type $my_array = array(); or $my_array=[]; returns the array length count($array); print the array in array list print_r(); print the array into string implode ("glue", array); accessing the array $my_array[pos]; adding and changing elements $my_array[pos] = new value; pushing and popping remove the last element array_pop(); append the element array_push(); remove first element array_shift(); prepend the element array_unshit(); remove the first element array_shift(); nestede array value = $my_array[][][] Associative Arrays - concept of dictionary - key and valure pair $my_array = array("key"=>"value"); or $my_array = ["key"=>"value"]; - remove element unset(); - joining the array in union manner - assign by reference ...

May 19, 2020 · 9 min · 1843 words · Ken Cho

Github usage example

The development cycle of the gigadb. 1. fork gigadb-website 2. clone the gigadb-website into local SSD git clone https://github.com/kencho51/gigadb-website.git 3. add remote origin git remote add origin https://github.com/kencho51/gigadb-website.git 4. add remote upstream origin git remote add upstream https://github.com/gigascience/gigadb-website.git 5. follow here to build the docker container for the testing. 6. The flow to make changes: 6.1 Create branch for an issue git branch issue-no 6.2 Go to that branch git checkout issue-no ...

May 19, 2020 · 4 min · 816 words · Ken Cho