Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dictionary = [
- ['A','a'],
- ['B','b'],
- ['C','c'],
- ['D','d'],
- ['E','e'],
- ['F','f'],
- ['G','g'],
- ['H','h'],
- ['I','i'],
- ['J','j'],
- ['K','k'],
- ['L','l'],
- ['M','m'],
- ['N','n'],
- ['O','o'],
- ['P','p'],
- ['Q','q'],
- ['R','r'],
- ['S','s'],
- ['T','t'],
- ['U','u'],
- ['V','v'],
- ['W','w'],
- ['X','x'],
- ['Y','y'],
- ['Z','z'],
- ]
- $tab = [
- ["EmpAcc", null],
- ["GetUserStats", null]
- ];
- function StartIndex($index, $lenghtOfString){
- $temp = null;
- if($index > -1){
- if($index >= $lenghtOfString){
- $temp = $lenghtOfString;
- }else{
- $temp = $index;
- }
- }else{
- if($index < $lenghtOfString * -1){
- $temp = $lenghtOfString * -1;
- }else{
- $temp = $index;
- }
- }
- return $temp;
- }
- for($i = 0; $i < count($tab, 0); $i++){
- for($j = 0; $j < count($tab[$i], 0); $j++){
- if(is_null($tab[$i][$j])){
- echo "------ ";
- }else{
- echo $tab[$i][$j]." ";
- }
- }
- echo "</br>";
- }
- echo substr($tab[0][0], -3,-2)."</br>"
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement