well I am knew to php and there is probably a function for this.
ok well I want to combine two arrays in a certian way like so

$varaible = array(example example2 );
$variable2 = array(something, something2);
i want to know a way to combine two arrays so it ends up looking like this
$varible3 = array(example => something, example2 => something2);

is this possible in php because they thing I am doing is getting two differnt arrays with different values and they need to be combined thusly.

Use array_merge().

$variable3 = array_merge( $variable1, $variable2 );

And check your code style. With your kind of ungrammatical writing and spelling you will spend more time debugging than coding.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.