Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived General Discussion
[HELP] array_push, array_pop in codeigniter
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
[HELP] array_push, array_pop in codeigniter
El Forum
Unregistered
#1
09-25-2010, 11:05 PM
[eluser]Unknown[/eluser]
i have some problems in array,i want to add and remove value inside an array like this :
example :
$username = array ('boby','terry','lucas');
then i want to change array values like this :
$username = array('boby','terry','john','nino');
How can i do this???
Hlp me plz...
El Forum
Unregistered
#2
09-26-2010, 12:15 AM
[eluser]Sbioko[/eluser]
Code:
$username[2] = 'john';
$username[] = 'nino';
El Forum
Unregistered
#3
09-27-2010, 09:07 AM
[eluser]OliverHR[/eluser]
$users = array ('boby','terry','lucas');
$array_pop($users);
$users [] = 'john';
$users [] = 'nino';
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB