Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <?php
  2.  
  3. $dictionary = [
  4. ['A','a'],
  5. ['B','b'],
  6. ['C','c'],
  7. ['D','d'],
  8. ['E','e'],
  9. ['F','f'],
  10. ['G','g'],
  11. ['H','h'],
  12. ['I','i'],
  13. ['J','j'],
  14. ['K','k'],
  15. ['L','l'],
  16. ['M','m'],
  17. ['N','n'],
  18. ['O','o'],
  19. ['P','p'],
  20. ['Q','q'],
  21. ['R','r'],
  22. ['S','s'],
  23. ['T','t'],
  24. ['U','u'],
  25. ['V','v'],
  26. ['W','w'],
  27. ['X','x'],
  28. ['Y','y'],
  29. ['Z','z'],
  30.  
  31. ]
  32.  
  33. $tab = [
  34. ["EmpAcc", null],
  35. ["GetUserStats", null]
  36. ];
  37.  
  38. function StartIndex($index, $lenghtOfString){
  39. $temp = null;
  40. if($index > -1){
  41. if($index >= $lenghtOfString){
  42. $temp = $lenghtOfString;
  43. }else{
  44. $temp = $index;
  45. }
  46. }else{
  47. if($index < $lenghtOfString * -1){
  48. $temp = $lenghtOfString * -1;
  49. }else{
  50.  
  51. $temp = $index;
  52. }
  53. }
  54. return $temp;
  55. }
  56.  
  57. for($i = 0; $i < count($tab, 0); $i++){
  58. for($j = 0; $j < count($tab[$i], 0); $j++){
  59. if(is_null($tab[$i][$j])){
  60. echo "------ ";
  61. }else{
  62. echo $tab[$i][$j]." ";
  63. }
  64. }
  65. echo "</br>";
  66. }
  67. echo substr($tab[0][0], -3,-2)."</br>"
  68.  
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement