Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

assign to array array of values php

$keys = array('username', 'password', 'email');

$values = array('someusername', 'somepassword', 'someemail');

$data = array_combine($keys, $values);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #assign #array #array #values #php
ADD COMMENT
Topic
Name
5+1 =