A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

A PHP Error was encountered

Severity: Notice

Message: Only variables should be assigned by reference

Filename: core/Loader.php

Line Number: 150

Shred Code


Welcome to Shred Code

Mobile Apps

Check out our multiple apps in the Google Play Store

View Apps >>

Let Us Help

We would love to help you code review or consult on your projects!

View Details >>

CrowdSource Code

We can let others view your code or even post your jobs here!

View details >>


Did you get stuck inheriting a script? Do you want a fast introduction to the language? Send us the code and we can help you modify it or even document and walk you through it. Look at this script below. If you are a casual user-you might have to spend time looking up each function to really understand what is going on.
<?php

echo similar_text('test','test');
//prints 4
 
echo stristr('nodejscool','js');
 
// prints jscool 
$line = '1,2,3,4';
 

$parsed = explode(',',$line);
var_dump($parsed);
//array(4) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" [3]=> string(1) "4" }

?>
Now look at this output. Highlighting and linking to api documents inside of the is provided. This is a basic service that we automate, however we can also go into further detail.
  1. <?php
  2.  
  3. echo similar_text('test','test');
  4. //prints 4
  5.  
  6. echo stristr('nodejscool','js');
  7.  
  8. // prints jscool
  9. $line = '1,2,3,4';
  10.  
  11.  
  12. $parsed = explode(',',$line);
  13. var_dump($parsed);
  14. //array(4) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" [3]=> string(1) "4" }
  15.  
  16. ?>


Contact Us