PHP Classes

File: detected.php

Recommend this page to a friend!
  Classes of adriano ghezzi   PHP Yandex Translate API Wrapper   detected.php   Download  
File: detected.php
Role: Example script
Content type: text/plain
Description: detect language
Class: PHP Yandex Translate API Wrapper
Translate text between languages using Yandex API
Author: By
Last change:
Date: 7 years ago
Size: 203 bytes
 

Contents

Class file image Download
<?php
require_once "../apiYandex.php";
$text=$_POST['text'];
$yandex=\yandex\apiYandex::Factory();
$lang=null;
$msg=null;
$result=$yandex->detect($text,$lang,$msg);

require_once
"detected.html";