Phonetic Alphabet

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @ varchar(max)='Hello World' 

DECLARE @x INT=len(@)
WHILE @x>0
  SELECT @=stuff(@,@x,1,substring(@,@x,1)+choose(ascii(substring(@,@x,1))%32,
    'lfa','eta','harlie','elta','cho','oxtrot','olf','otel','ndia','uliett','ilo',
	'ima','ike','ovember','scar','apa','uebec','omeo','ierra','ango','niform',
	'ictor','hiskey','ray','ankee','ulu')+';'),
	@x-=1

PRINT @

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results