PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php class Translation { const DETECT_YA_URL = 'https://translate.yandex.net/api/v1.5/tr.json/detect'; const TRANSLATE_YA_URL = 'https://translate.yandex.net/api/v1.5/tr.json/translate'; public $key ="AIza1yCf2zgkmk-nRxdbB4gg49M9GZhmFei55uo"; public function translate_text() { // echo self::$key; echo $this->key; } } $transl = new Translation(); echo $transl->translate_text(); //Translation::translate_text();
Show:  
Copy Clear