<?php
error_reporting(-1);
	function numberToText1($amount1){
	$remainder = ($amount1 % 100);
		if ($amount1==0) {
			$result[]=$amount1;
		} 
		elseif (floor($amount1/100)>0){
			$result[]=((floor($amount1/100)*100));
		}
		elseif (($remainder>10) & ($remainder<20)){
			$result[]=($remainder);
		}


		return $result;
	}
var_dump(numberToText1(115));