Results for objects translation from Finnish to Chinese (Simplified)

Human contributions

From professional translators, enterprises, web pages and freely available translation repositories.

Add a translation

Finnish

Chinese (Simplified)

Info

Finnish

vaihda tähtien näyttötoggle deep sky objects in the display

Chinese (Simplified)

切换恒星toggle deep sky objects in the display

Last Update: 2011-10-23
Usage Frequency: 1
Quality:

Finnish

esimerkki 2. parsemoldb.php - parses moldb.xml into and array of molecular objects

Chinese (Simplified)

?php class aminoacid {var $name; // aa name var $symbol; // three letter symbol var $code; // one letter code var $type; // hydrophobic, charged or neutral function aminoacid ($aa) {foreach ($aa as $k= $v) $this- $k = $aa[$k];}} function readdatabase($filename) {// read the xml database of aminoacids $data = implode("",file($filename)); $parser = xml_parser_create(); xml_parser_set_option($parser,xml_option_case_folding,0); xml_parser_set_option($parser,xml_option_skip_white,1); xml_parse_into_struct($parser,$data,$values,$tags); xml_parser_free($parser); // loop through the structures foreach ($tags as $key= $val) {if ($key == "molecule") {$molranges = $val; // each contiguous pair of array entries are the // lower and upper range for each molecule definition for ($i=0; $i count($molranges); $i+=2) {$offset = $molranges[$i] + 1; $len = $molranges[$i + 1] - $offset; $tdb[] = parsemol(array_slice($values, $offset, $len));}} else {continue;}} return $tdb;} function parsemol($mvalues) {for ($i=0; $i count($mvalues); $i++) $mol[$mvalues[$i]["tag"]] = $mvalues[$i]["value"]; return new aminoacid($mol);} $db = readdatabase("moldb.xml"); echo "** database of aminoacid objects:\n"; print_r($db);?

Last Update: 2011-10-24
Usage Frequency: 1
Quality:

Warning: Contains invisible HTML formatting

Get a better translation with
8,927,609,910 human contributions

Users are now asking for help:



We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. Learn more. OK