I'm passing PHP variable value like this:\[code\]<input type="button" name="delete" value="http://stackoverflow.com/questions/10546873/Remove" onclick="del(<?echo $arr1[0]?>);"/>\[/code\]\[code\]del()\[/code\] is a Javascript function and Eg:\[code\]$arr1[0]=234-675-90\[/code\] the value of $arr1[0] is obtained from MYSQL database and its data-type in mysql is varchar.I'm fetching value using mysql_query.The problem I'm facing is that when value is passed to JavaScript function it takes it wrongly(eg:instead of 234-675-99 as -876).Is there any casting is to be done to pass value from PHP to JavaScript?Any help is greatly appreciated.