Skip to content

Instantly share code, notes, and snippets.

@RoyBellingan
Created October 23, 2014 15:59
Show Gist options
  • Save RoyBellingan/5cb01b210764ec371416 to your computer and use it in GitHub Desktop.
Save RoyBellingan/5cb01b210764ec371416 to your computer and use it in GitHub Desktop.
PHP Beautifier
Beautify and format your PHP code
Here is your PHP code :
Source
See as Text
<?php
public
function SeEstImg($CodiceSpicers, $NomeBrand, $ListinoA, $DescrizioneBreve)
{
$urlimg2 = "http://xx/" . $CodiceSpicers . "A1.jpg";
$urlimg = "http://xx/" . $CodiceSpicers . "A1.jpg";
$out = '';
$urlfinal = '';
$dir = "../img1/";
$upast = $dir . $CodiceSpicers . "_(npget).jpg";
if (is_file($urlimg2)) {
if (!copy($urlimg2, $dir . $CodiceSpicers . "_(npget).jpg")) {
$out.= "Copy NO success!Copy failed.";
}
else {
$urlfinal = $dir . $CodiceSpicers . "_(npget).jpg";
$out.= "Copy success!";
}
}
else {
// senno mi stampa una img a caso
$urlfinal = '../menuimg/jp.png';
}
var_dump(is_file($urlprova));
$out.= "<div>" . $upast . "<br />" . $urlimg2 . "<img src='$urlfinal' width='10%' >" . $urlfinal . "<br />
<a href=''> " . iconv("windows-1252", "UTF-8", $DescrizioneBreve) . "-" . $NomeBrand . "-" . $ListinoA * 2.30 . "</a><br />
</div>";
// print_r($rt);
return $out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment