Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-smush.../vendor/mixpanel/mixpanel.../examples
File: profile_advanced.php
<?php
[0] Fix | Delete
// import the Mixpanel class
[1] Fix | Delete
require_once("../lib/Mixpanel.php");
[2] Fix | Delete
[3] Fix | Delete
// instantiate the Mixpanel class
[4] Fix | Delete
$mp = Mixpanel::getInstance("MIXPANEL_PROJECT_TOKEN");
[5] Fix | Delete
[6] Fix | Delete
// create or update a profile with First Name, Last Name, E-Mail Address, Phone Number, and Favorite Color
[7] Fix | Delete
$mp->people->set(12345, array(
[8] Fix | Delete
'$first_name' => "John",
[9] Fix | Delete
'$last_name' => "Doe",
[10] Fix | Delete
'$email' => "john.doe@example.com",
[11] Fix | Delete
'$phone' => "5555555555",
[12] Fix | Delete
"Favorite Color" => "red"
[13] Fix | Delete
));
[14] Fix | Delete
[15] Fix | Delete
// increment the count of login attempts for user 12345
[16] Fix | Delete
$mp->people->increment(12345, "Login Attempts", 1);
[17] Fix | Delete
[18] Fix | Delete
// add "Home Page" to a list of "Page Views" for user 12345
[19] Fix | Delete
$mp->people->append(12345, "Page Views", "Home Page");
[20] Fix | Delete
[21] Fix | Delete
// add Cats, Pizza, and Baseball to a list of "Favorites" for user 12345
[22] Fix | Delete
$mp->people->append(12345, "Favorites", array("Cats", "Pizza", "Baseball"));
[23] Fix | Delete
[24] Fix | Delete
// track a purchase or charge of $9.99 for user 12345 where the transaction happened just now
[25] Fix | Delete
$mp->people->trackCharge(12345, "9.99");
[26] Fix | Delete
[27] Fix | Delete
// track a purchase or charge of $20 for user 12345 where the transaction happened on June 01, 2013 at 5pm EST
[28] Fix | Delete
$mp->people->trackCharge(12345, "20.00", strtotime("01 Jun 2013 5:00:00 PM EST"));
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function