• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Turkish] CodeIgniter-3.1.11 send value with uri

#2
Selamlar,

PHP Explode fonksiyonunu kullanabilirsin.

PHP Code:
<?php
$url 
"kayıt / change_timezone / Amerika / New_York."//urlyi çekmelisin. Ben örnek olarak yazdım.

$lets_explode explode("/"$url);   // $url'yi '/' karakteri ile parçala
$ulke =  $lets_explode[2];
$sehir $lets_explode[3];

$sonuc $ulke.'/'.$sehir;  // istedigin herhangi bir kombinasyonu böylece yakayalabilirsin
?>
Reply


Messages In This Thread
RE: [Turkish] CodeIgniter-3.1.11 send value with uri - by demyr - 08-12-2020, 04:41 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.