Jump to content

[SOLVED] Noob question...


aim25

Recommended Posts

=> Would be used in arrays

 

For the =>

array_keys => array_values;

 

And for the ->

Class->Function

<?php
$old = array('Bob'=>'World');
$new = str_replace(array_keys($old), array_values($old), "Hello Bob");
echo $new ;
?>

<?php
class MySQL {
  fucntion MyQuery($str_query) {

  }
}

$SQL = new MySQL;
$Res = $SQL->MyQuery("SELECT * FROM table");

?>

Link to comment
https://forums.phpfreaks.com/topic/57307-solved-noob-question/#findComment-283303
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.