Skip to main content
deleted 3 characters in body
Source Link

PHP, 160 bytes

<? preg_match_all('/(tle=\")(.+)(\")\sa/',join(0,file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo;echo(strstr($c$c=$a[2][0],'Brains asid'))?$b:html_entity_decode($c,3);

PHP, 160 bytes

<? preg_match_all('/(tle=\")(.+)(\")\sa/',join(0,file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo(strstr($c,'Brains asid'))?$b:html_entity_decode($c,3);

PHP, 160 bytes

<? preg_match_all('/(tle=\")(.+)(\")\sa/',join(0,file('http://xkcd.com/'.$argv[1])),$a);echo(strstr($c=$a[2][0],'Brains asid'))?$b:html_entity_decode($c,3);
deleted 14 characters in body
Source Link

PHP, <177160 bytes

<? preg_match_all('%'/(title=\"tle=\")(.+)(\")\salt%'\sa/',implodejoin(''0,file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo(substrstrstr($c,0,12)=="Brains'Brains aside"asid'))?$b:html_entity_decode($c,3);

PHP, <177 bytes

<? preg_match_all('%(title=\")(.+)(\")\salt%',implode('',file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo(substr($c,0,12)=="Brains aside")?$b:html_entity_decode($c,3);

PHP, 160 bytes

<? preg_match_all('/(tle=\")(.+)(\")\sa/',join(0,file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo(strstr($c,'Brains asid'))?$b:html_entity_decode($c,3);
deleted 8 characters in body
Source Link

PHP, 177<177 bytes

<? preg_match_all('%(title=\")(.+)(\")\salt%',implode('',file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo(substr($c,0,12)=="Brains aside")?$b:html_entity_decode($c,ENT_QUOTES3);

PHP, 177 bytes

<? preg_match_all('%(title=\")(.+)(\")\salt%',implode('',file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo(substr($c,0,12)=="Brains aside")?$b:html_entity_decode($c,ENT_QUOTES);

PHP, <177 bytes

<? preg_match_all('%(title=\")(.+)(\")\salt%',implode('',file('http://xkcd.com/'.$argv[1])),$a);$c=$a[2][0];echo(substr($c,0,12)=="Brains aside")?$b:html_entity_decode($c,3);
edited body
Source Link
Loading
Shaved a byte, "file"
Source Link
Loading
Now we get the right attrib....
Source Link
Loading
added 20 characters in body
Source Link
totallyhuman
  • 17.3k
  • 3
  • 32
  • 88
Loading
deleted 24 characters in body
Source Link
Loading
Source Link
Loading