How To Operate Yesteryear Concluding Segment From Url Inwards Codeigniter?

I ask to perish the value of final URI / URL segment inward Codeigniter today in addition to I came upward alongside this tardily solutions. It permits y'all to think a final segment from the URI. ALL 3 choice industrial plant similar charm.
Alternative 1:
 $last = end($this->uri->segments);  //Where, segments is a shape variable. 
Alternative 2:
 $last = end($this->uri->segment_array()); 
Alternative 3:
 $total = $this->uri->total_segments(); $last = $this->uri->segment($total); 

Sumber http://developer-paradize.blogspot.com

Comments

Popular posts from this blog

What Are The Main Components of a Computer System

Top Qualities To Look For In An IT Support Team

How To Integrate Google Adwords Api Into Codeigniter?