SHARE
TWEET

Untitled

a guest Dec 11th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="row">
  2. <div class="col-md-6">
  3.     <h4>PREETI</h4>
  4.     <form method="GET">
  5.         <input id ="input-preeti" class="form-control" name="preeti" value="{{ $input_preeti }}">
  6.         <button type="submit" class="btn btn-primary" style="margin: 1em 0;">Submit</button>
  7.     </form>
  8. </div>
  9.  
  10. <div class="col-md-6">
  11.     <h4>UNICODE</h4>
  12. <input class="form-control" name = "unicode" readonly value="{{ $output_unicode }}">
  13. </div>
  14.    
  15. public function preeti()
  16. {
  17.     $preeti_rule =
  18. [
  19.     "a" => "d",
  20.     "b" => "k",
  21.     "v" => "l",
  22.     "r" => "t",
  23.     "i" => "g",
  24.     "y"" => "s"
  25. ];
  26.     $input_preeti = $this->input->get('preeti');
  27.     $output_unicode = join('',
  28.     array_map(function($convert_unicode) use($preeti_rule) {
  29.                       return $preeti_rule[$convert_unicode] ?? null; },
  30.                       str_split($input_preeti)));
  31.  
  32.     $this ->load->blade('index.preeti-to-unicode',[
  33.         'preeti' => $input_preeti,
  34.         'unicode' => $output_unicode,
  35.  
  36.     ]);
  37. }
  38.    
  39. $this ->load->blade('index.preeti-to-unicode',[
  40.         'preeti' => $input_preeti,
  41.         'unicode' => $output_unicode,
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top