3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class enkripsi { private $kunci1=array('a','b','c','d','e','f','g','h','i','j','k','l','m'); protected $kunci2=array('n','o','p','q','r','s','t','u','v','w','x','y','z'); private function cari($a) { if(in_array($a,$this->kunci1)) { $b=array_search($a,$this->kunci1); return $this->kunci2[$b]; } elseif(in_array($a,$this->kunci2)) { $b=array_search($a,$this->kunci2); return $this->kunci1[$b]; } } public function cetak($a) { echo $this->cari($a); } } $ob=new enkripsi(); $ob->cetak("n");
based on a6T2G
Output for 5.6.38 - 7.3.0rc3
a