PageRenderTime 20ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/source/uplods/testgetvalue.php

http://prosporous.googlecode.com/
PHP | 45 lines | 29 code | 7 blank | 9 comment | 1 complexity | 5895d000981cb2de8dc73830f339a98a MD5 | raw file
 1<?php
 2function grv($type,$blm,$dvalue=false){
 3	//print_r($type);
 4	if($dvalue){
 5		return $dvalue;
 6		}else{
 7		switch($type){
 8				case 'function':{
 9					$a=explode('#',$blm);
10					return $a[0]($a[1]);
11					break;
12					}
13				case '0':{
14					return $blm;
15					break;
16					}
17				case '1':{
18					break;
19					}
20				default:{
21					
22					return	$type[$blm];
23					}
24			
25				}
26			}
27	}
28
29/*function test($str){
30	echo $str.'asdeffeefefefefe';
31	}
32$a='twst';
33$fun='test';
34//echo $fun($a);
35grv('function','test#adf');
36*/
37
38$_GET[e]="cssssssssssssssssssssssssss";
39$_GET[a]="cssssssssssssssssssssssssss";
40$_GET[b]="cssssssssssssssssssssssssss";
41
42echo grv($_GET,'a');
43
44
45?>